Page MenuHomeFreeBSD

Prevent SEGV on corrupted msdos directories
AbandonedPublic

Authored by sevan on Apr 28 2017, 6:01 PM.
Tags
None
Referenced Files
F159741703: D10539.diff
Wed, Jun 17, 6:13 PM
Unknown Object (File)
May 15 2026, 9:49 AM
Unknown Object (File)
May 14 2026, 7:20 PM
Unknown Object (File)
May 12 2026, 11:46 AM
Unknown Object (File)
Apr 27 2026, 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
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 :).