Date: Sun, 15 Nov 2015 05:46:58 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-fs@FreeBSD.org Subject: [Bug 127270] fsck_msdosfs(8) may crash if BytesPerSec is zero Message-ID: <bug-127270-3630-F4tWNSF3Fx@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-127270-3630@https.bugs.freebsd.org/bugzilla/> References: <bug-127270-3630@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=127270 NGie Cooper <ngie@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-fs@FreeBSD.org |ngie@FreeBSD.org CC| |ngie@FreeBSD.org --- Comment #2 from NGie Cooper <ngie@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-127270-3630-F4tWNSF3Fx>