Page MenuHomeFreeBSD

bsdinstall partedit: Avoid potential buffer overflow in newfs_command
ClosedPublic

Authored by jhb on Oct 16 2023, 10:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 19, 4:37 PM
Unknown Object (File)
Sat, Sep 19, 8:50 AM
Unknown Object (File)
Fri, Sep 18, 1:38 PM
Unknown Object (File)
Fri, Sep 18, 4:19 AM
Unknown Object (File)
Fri, Sep 11, 4:50 AM
Unknown Object (File)
Wed, Sep 9, 12:54 AM
Unknown Object (File)
Sat, Sep 5, 3:14 PM
Unknown Object (File)
Sat, Sep 5, 8:20 AM
Subscribers

Details

Summary

Allocate the buffer holding the newfs command string dynamically
(building the string via open_memstream) rather than storing the
command into a caller-supplied buffer of unknown length.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable