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)
Thu, Nov 13, 6:29 AM
Unknown Object (File)
Tue, Nov 11, 12:29 AM
Unknown Object (File)
Sun, Nov 9, 3:02 AM
Unknown Object (File)
Oct 18 2025, 8:17 PM
Unknown Object (File)
Oct 13 2025, 4:03 PM
Unknown Object (File)
Oct 13 2025, 9:08 AM
Unknown Object (File)
Oct 13 2025, 9:08 AM
Unknown Object (File)
Oct 13 2025, 9:08 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