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)
Apr 30 2024, 1:37 PM
Unknown Object (File)
Apr 30 2024, 1:37 PM
Unknown Object (File)
Apr 30 2024, 1:37 PM
Unknown Object (File)
Apr 30 2024, 7:16 AM
Unknown Object (File)
Mar 8 2024, 10:36 AM
Unknown Object (File)
Mar 8 2024, 10:36 AM
Unknown Object (File)
Mar 8 2024, 9:47 AM
Unknown Object (File)
Mar 8 2024, 9:34 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