summaryrefslogtreecommitdiffstats
path: root/dir.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebastian.rasmussen@stericsson.com>2011-02-01 15:35:50 +0100
committerChristian Bejram <christian.bejram@stericsson.com>2012-05-07 18:43:38 +0200
commitfe7400ddb5e99a790cd3977f9e5151d8ea929a14 (patch)
tree5a6efa49bc9563936d9eb661b427a9769658e24f /dir.c
parente1dd6c88cff4f71c298921ef34f7662eb227aacf (diff)
downloadandroid_external_fsck_msdos-fe7400ddb5e99a790cd3977f9e5151d8ea929a14.tar.gz
android_external_fsck_msdos-fe7400ddb5e99a790cd3977f9e5151d8ea929a14.tar.bz2
android_external_fsck_msdos-fe7400ddb5e99a790cd3977f9e5151d8ea929a14.zip
Fix division-by-zero when reading partition tables
When fsck_msdos was asked to analyze a device that contained a partition table in its first sector fsck_msdos was doing a division-by-zero because of mostly zeroed out fields. This fix postpones the division until it is necessary, while other tests already present detect the zeroed out fields and so fsck_msdos fails in a controlled fashion. Change-Id: Id2274b140449f4470f95a0215277f2f2de4cb7b0 Signed-off-by: Sebastian Rasmussen <sebastian.rasmussen@stericsson.com> Signed-off-by: christian bejram <christian.bejram@stericsson.com>
Diffstat (limited to 'dir.c')
0 files changed, 0 insertions, 0 deletions