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)
Fri, Mar 14, 1:36 PM
Unknown Object (File)
Feb 4 2025, 8:00 AM
Unknown Object (File)
Feb 4 2025, 7:58 AM
Unknown Object (File)
Jan 28 2025, 5:04 AM
Unknown Object (File)
Jan 26 2025, 3:53 PM
Unknown Object (File)
Jan 15 2025, 12:29 AM
Unknown Object (File)
Dec 27 2024, 12:37 AM
Unknown Object (File)
Dec 10 2024, 1:59 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