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
F139660668: D36813.id111230.diff
Sun, Dec 14, 4:40 PM
Unknown Object (File)
Mon, Dec 1, 8:47 AM
Unknown Object (File)
Tue, Nov 25, 3:59 PM
Unknown Object (File)
Sun, Nov 23, 1:34 PM
Unknown Object (File)
Wed, Nov 19, 4:48 AM
Unknown Object (File)
Nov 14 2025, 9:19 PM
Unknown Object (File)
Nov 14 2025, 12:30 PM
Unknown Object (File)
Nov 4 2025, 7:37 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 Not Applicable
Unit
Tests Not Applicable