[Bug 243179] fsck_msdosfs: Off-by-two in determination of FAT type
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jan 8 08:51:31 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243179
Bug ID: 243179
Summary: fsck_msdosfs: Off-by-two in determination of FAT type
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: delphij at FreeBSD.org
The FAT type determination in fsck_msdosfs is wrong.
In the code we used NumClusters as the upper (non-inclusive) boundary of valid
cluster number, so the actual value was 2 (CLUST_FIRST) more than the real
number of clusters.
Therefore, it's not right to use NumClusters as it is today to determine FAT
type.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list