commit 8a835481917cf773453347ad035c70a5aa72126c
Author: Tomohiro Kusumi <[email protected]>
Date: Fri Oct 11 22:52:10 2019 +0900
sys/vfs/msdosfs: Fix a serious off by 1 for cluster bitmap
from freebsd/freebsd@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