DragonFly-2.3.0.227.g62d33a0 master sbin/fsck_msdosfs fat.c
Simon Schubert
corecode at crater.dragonflybsd.org
Wed Feb 18 03:03:27 PST 2009
commit 62d33a05b33e52cac8d86a93b81df3c5698f0c5f
Author: Simon Schubert <corecode at dragonflybsd.org>
Date: Wed Feb 18 11:57:53 2009 +0100
fsck_msdosfs: check next cluster index for validity before using it
The boot->FSNext index can wind up to be out of range, thus leading to a
segfault when trying to check whether it is pointing to a free cluster.
Check for it being in range before using it as an index into the fat
array.
Summary of changes:
sbin/fsck_msdosfs/fat.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/62d33a05b33e52cac8d86a93b81df3c5698f0c5f
--
DragonFly BSD source repository
More information about the Commits
mailing list