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, Sep 26, 5:01 AM
Unknown Object (File)
Sat, Sep 26, 12:12 AM
Unknown Object (File)
Fri, Sep 25, 2:33 PM
Unknown Object (File)
Fri, Sep 25, 1:40 PM
Unknown Object (File)
Fri, Sep 25, 11:47 AM
Unknown Object (File)
Fri, Sep 25, 2:23 AM
Unknown Object (File)
Thu, Sep 24, 7:05 AM
Unknown Object (File)
Tue, Sep 22, 9:03 AM
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