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)
Thu, Feb 12, 5:48 AM
Unknown Object (File)
Sun, Feb 8, 2:34 PM
Unknown Object (File)
Sun, Feb 8, 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
Unknown Object (File)
Nov 28 2025, 10:12 PM
Unknown Object (File)
Nov 28 2025, 4:11 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