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)
Fri, Sep 19, 5:05 PM
Unknown Object (File)
Fri, Sep 19, 12:26 PM
Unknown Object (File)
Fri, Sep 19, 10:07 AM
Unknown Object (File)
Sep 9 2025, 7:42 PM
Unknown Object (File)
Sep 3 2025, 3:19 PM
Unknown Object (File)
Aug 25 2025, 11:21 PM
Unknown Object (File)
Aug 16 2025, 12:41 AM
Unknown Object (File)
Aug 15 2025, 11:16 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