Page MenuHomeFreeBSD

Prevent SEGV on corrupted msdos directories
AbandonedPublic

Authored by sevan on Apr 28 2017, 6:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 15, 9:49 AM
Unknown Object (File)
Thu, May 14, 7:20 PM
Unknown Object (File)
Tue, May 12, 11:46 AM
Unknown Object (File)
Mon, Apr 27, 2:20 PM
Unknown Object (File)
Apr 20 2026, 2:14 AM
Unknown Object (File)
Apr 19 2026, 10:33 PM
Unknown Object (File)
Apr 7 2026, 1:42 PM
Unknown Object (File)
Apr 4 2026, 2:30 PM
Subscribers

Details

Reviewers
bcr
emaste
Summary

By Veo Zhang via NetBSD
Tested it builds as an individual component (not as part of build world) but
haven't performed any tests on a file system.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 8974
Build 9368: arc lint + arc unit

Event Timeline

You need to find someone more knowledgeable in that area (i.e. src-committer) to look over that change. Maybe someone who recently made some change to the same code area: https://svnweb.freebsd.org/base/head/sbin/fsck_msdosfs/

It is not incorrect but it looks somewhat weird: Perhaps it's just an off-by-one and changing k >=0 to k > 0 in line 620 solves it more cleanly.

I'll think of it for a while :).