git: sys/vfs/msdosfs: Fix a serious off by 1 for cluster bitmap
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Fri Oct 11 12:12:59 PDT 2019
commit 8a835481917cf773453347ad035c70a5aa72126c
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Fri Oct 11 22:52:10 2019 +0900
sys/vfs/msdosfs: Fix a serious off by 1 for cluster bitmap
from freebsd/freebsd at 4159786890522d187529c336eb6da4029f04a3e1
Fixed a serious off by 1 error. The cluster-in-use bitmap was overrun
by 1 u_int if the number of clusters was 1 more than a multiple of
(8 * sizeof(u_int)). The bitmap is malloced and large (often huge), so
fatal overrun probably only occurred if the number of clusters was 1
more than 1 multiple of PAGE_SIZE/8.
Summary of changes:
sys/vfs/msdosfs/msdosfs_vfsops.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8a835481917cf773453347ad035c70a5aa72126c
--
DragonFly BSD source repository
More information about the Commits
mailing list