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
F170809572: D40658.id123533.diff
Sun, Sep 6, 6:50 PM
Unknown Object (File)
Sat, Sep 5, 2:22 PM
Unknown Object (File)
Fri, Sep 4, 9:04 PM
Unknown Object (File)
Thu, Sep 3, 1:53 PM
Unknown Object (File)
Thu, Sep 3, 6:10 AM
Unknown Object (File)
Wed, Sep 2, 9:26 AM
Unknown Object (File)
Wed, Sep 2, 2:28 AM
Unknown Object (File)
Sun, Aug 23, 4:54 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