HomeFreeBSD

bsdinstall: Replace correct, but fragile, string builder with open_memstream.

Description

bsdinstall: Replace correct, but fragile, string builder with open_memstream.

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.

Differential Revision: https://reviews.freebsd.org/D40658

Details

Provenance
jhbAuthored on Jun 27 2023, 5:19 PM
Differential Revision
D40658: bsdinstall: Replace correct, but fragile, string builder with open_memstream.
Parents
rGf5e73306336f: ipfw: Remove set but unused variables.
Branches
Unknown
Tags
Unknown