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, Dec 27, 12:37 AM
Unknown Object (File)
Dec 10 2024, 1:59 PM
Unknown Object (File)
Nov 14 2024, 9:19 PM
Unknown Object (File)
Nov 6 2024, 10:55 PM
Unknown Object (File)
Nov 6 2024, 10:55 PM
Unknown Object (File)
Nov 6 2024, 10:54 PM
Unknown Object (File)
Nov 5 2024, 8:26 AM
Unknown Object (File)
Sep 18 2024, 6:24 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