[Bug 127270] fsck_msdosfs(8) may crash if BytesPerSec is zero
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Nov 15 05:46:59 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=127270
NGie Cooper <ngie at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|freebsd-fs at FreeBSD.org |ngie at FreeBSD.org
CC| |ngie at FreeBSD.org
--- Comment #2 from NGie Cooper <ngie at FreeBSD.org> ---
This should avoid the divide by 0, but I'd need to verify that the behavior is
correct:
https://people.freebsd.org/~ngie/bug127270.patch
This situation should occur if and when boot blocks 12 and 13 are 0, but there
might need to be some additional conditions that need to be tripped in order
for the divide by 0 to occur:
66 boot->bpbBytesPerSec = block[11] + (block[12] << 8);
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-fs
mailing list