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)
Fri, Dec 12, 3:56 AM
Unknown Object (File)
Fri, Nov 28, 10:12 PM
Unknown Object (File)
Fri, Nov 28, 4:11 PM
Unknown Object (File)
Thu, Nov 27, 8:27 PM
Unknown Object (File)
Tue, Nov 25, 9:28 PM
Unknown Object (File)
Sun, Nov 23, 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 Not Applicable
Unit
Tests Not Applicable