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)
Dec 18 2025, 4:11 PM
Unknown Object (File)
Dec 18 2025, 4:10 PM
Unknown Object (File)
Nov 28 2025, 2:49 AM
Unknown Object (File)
Nov 27 2025, 4:21 AM
Unknown Object (File)
Nov 26 2025, 9:37 AM
Unknown Object (File)
Nov 26 2025, 5:25 AM
Unknown Object (File)
Nov 13 2025, 6:29 AM
Unknown Object (File)
Nov 11 2025, 12:29 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