Page MenuHomeFreeBSD

diff: Don't treat null characters like carriage returns in readhash().
ClosedPublic

Authored by jhb on Sep 29 2022, 10:26 PM.
Tags
None
Referenced Files
F98607383: D36813.diff
Fri, Oct 4, 12:55 AM
F98594483: D36813.diff
Thu, Oct 3, 11:48 PM
Unknown Object (File)
Tue, Oct 1, 7:02 PM
Unknown Object (File)
Tue, Oct 1, 4:20 PM
Unknown Object (File)
Fri, Sep 27, 7:37 PM
Unknown Object (File)
Thu, Sep 26, 9:13 AM
Unknown Object (File)
Wed, Sep 25, 12:37 PM
Unknown Object (File)
Sat, Sep 21, 1:44 PM
Subscribers

Details

Summary

The implicit fall-through in the !D_FORCEASCII case caused null
characters to be treated as carriage returns honoring the D_STRIPCR,
D_FOLDBLANKS, and D_IGNOREBLANKS flags.

Reported by: GCC -Wimplicit-fallthrough
Fixes: 3cbf98e2bee9 diff: read whole files to determine if they are ASCII text

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 47627
Build 44514: arc lint + arc unit