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)
Wed, Nov 6, 10:55 PM
Unknown Object (File)
Wed, Nov 6, 10:55 PM
Unknown Object (File)
Wed, Nov 6, 10:54 PM
Unknown Object (File)
Tue, Nov 5, 8:26 AM
Unknown Object (File)
Sep 18 2024, 6:24 PM
Unknown Object (File)
Sep 16 2024, 1:12 AM
Unknown Object (File)
Sep 10 2024, 6:55 PM
Unknown Object (File)
Sep 10 2024, 6:35 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