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
Unknown Object (File)
May 8 2024, 6:13 PM
Unknown Object (File)
May 8 2024, 5:55 PM
Unknown Object (File)
May 8 2024, 5:55 PM
Unknown Object (File)
May 8 2024, 1:21 PM
Unknown Object (File)
Dec 21 2023, 10:40 PM
Unknown Object (File)
Dec 20 2023, 8:03 AM
Unknown Object (File)
Nov 29 2023, 9:05 AM
Unknown Object (File)
Oct 28 2023, 8:00 AM
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