Page MenuHomeFreeBSD

Do not overflow when calculating file system size.
ClosedPublic

Authored by delphij on Apr 28 2020, 3:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 13, 9:57 AM
Unknown Object (File)
Fri, Sep 11, 9:01 PM
Unknown Object (File)
Fri, Sep 11, 7:20 PM
Unknown Object (File)
Fri, Sep 11, 4:54 PM
Unknown Object (File)
Fri, Sep 11, 12:25 PM
Unknown Object (File)
Fri, Sep 11, 8:15 AM
Unknown Object (File)
Fri, Sep 11, 7:17 AM
Unknown Object (File)
Thu, Sep 10, 7:55 PM
Subscribers

Details

Summary

Reported by: Hyeongseok Kim <hyeongseok kim lge com>

Test Plan

truncate -s 128g test; newfs_msdos ./test; fsck_msdosfs ./test

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30771
Build 28496: arc lint + arc unit

Event Timeline

delphij created this revision.
cem added inline comments.
sbin/fsck_msdosfs/check.c
135

I don’t think this condition serves any purpose?

This revision is now accepted and ready to land.Apr 28 2020, 3:54 AM

Address reviewer comment (unconditionally calculate badbytes).

This revision now requires review to proceed.Apr 28 2020, 4:10 AM

Makes sense, I've updated the patch, could you please take another look?

Looks great, thanks!

This revision is now accepted and ready to land.Apr 28 2020, 5:08 AM
This revision was automatically updated to reflect the committed changes.