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)
Tue, Nov 4, 3:02 AM
Unknown Object (File)
Tue, Oct 28, 11:38 AM
Unknown Object (File)
Tue, Oct 28, 2:59 AM
Unknown Object (File)
Mon, Oct 27, 4:19 AM
Unknown Object (File)
Sep 19 2025, 5:05 PM
Unknown Object (File)
Sep 19 2025, 12:26 PM
Unknown Object (File)
Sep 19 2025, 10:07 AM
Unknown Object (File)
Sep 9 2025, 7:42 PM
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