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, Jan 18, 9:33 PM
Unknown Object (File)
Sun, Jan 12, 6:38 PM
Unknown Object (File)
Dec 1 2024, 6:49 AM
Unknown Object (File)
Dec 1 2024, 6:49 AM
Unknown Object (File)
Dec 1 2024, 6:49 AM
Unknown Object (File)
Dec 1 2024, 6:36 AM
Unknown Object (File)
Nov 21 2024, 6:48 AM
Unknown Object (File)
Oct 3 2024, 9:38 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