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)
Sat, Dec 20, 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
Unknown Object (File)
Nov 27 2025, 8:27 PM
Unknown Object (File)
Nov 25 2025, 9:28 PM
Unknown Object (File)
Nov 23 2025, 11:05 AM
Unknown Object (File)
Nov 20 2025, 9:41 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 52193
Build 49084: arc lint + arc unit