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)
Wed, Apr 15, 4:25 AM
Unknown Object (File)
Sat, Apr 11, 2:11 AM
Unknown Object (File)
Fri, Apr 10, 4:10 PM
Unknown Object (File)
Sun, Apr 5, 1:13 PM
Unknown Object (File)
Sun, Mar 29, 3:45 AM
Unknown Object (File)
Mar 17 2026, 2:53 AM
Unknown Object (File)
Mar 16 2026, 7:29 PM
Unknown Object (File)
Feb 12 2026, 5:48 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