Page MenuHomeFreeBSD

bsdinstall: Replace correct, but fragile, string builder with open_memstream.
ClosedPublic

Authored by jhb on Jun 20 2023, 4:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 21, 4:02 PM
Unknown Object (File)
Sun, Apr 21, 3:32 PM
Unknown Object (File)
Sun, Apr 21, 3:31 PM
Unknown Object (File)
Apr 9 2024, 6:16 AM
Unknown Object (File)
Mar 13 2024, 3:51 PM
Unknown Object (File)
Mar 13 2024, 3:51 PM
Unknown Object (File)
Mar 13 2024, 3:51 PM
Unknown Object (File)
Mar 10 2024, 10:34 AM
Subscribers

Details

Summary

The old one triggered a false positive -Warray-bounds from GCC (the
compiler assumed len was always 0), but it was also fragile with
manually computed lengths paired with strcat vs using a string
builder.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable