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, Jun 25, 2:22 PM
Unknown Object (File)
Fri, Jun 19, 12:21 PM
Unknown Object (File)
Tue, Jun 9, 12:30 AM
Unknown Object (File)
May 18 2026, 9:43 PM
Unknown Object (File)
May 18 2026, 10:18 AM
Unknown Object (File)
May 17 2026, 10:00 PM
Unknown Object (File)
May 16 2026, 2:12 PM
Unknown Object (File)
May 15 2026, 8:17 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