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, Mar 17, 2:53 AM
Unknown Object (File)
Mon, Mar 16, 7:29 PM
Unknown Object (File)
Feb 12 2026, 5:48 AM
Unknown Object (File)
Feb 8 2026, 2:34 PM
Unknown Object (File)
Feb 8 2026, 5:30 AM
Unknown Object (File)
Jan 30 2026, 7:25 PM
Unknown Object (File)
Dec 20 2025, 1:03 PM
Unknown Object (File)
Dec 12 2025, 3:56 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