HomeFreeBSD

bsdinstall partedit: Use snprintf instead of sprintf for error messages

Description

bsdinstall partedit: Use snprintf instead of sprintf for error messages

When generating a message for a dialog box into a static buffer, use
snprintf instead of sprintf to avoid buffer overflows.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D42240

(cherry picked from commit 6e8bf24073a1867c4b21bd84438a8b01ce91d82d)

Details

Provenance
jhbAuthored on Oct 16 2023, 11:25 PM
Reviewer
emaste
Differential Revision
D42240: bsdinstall partedit: Use snprintf instead of sprintf for error messages
Parents
rGa403492f96be: bsdinstall partedit: Use asprintf to build wrapper command for newfs
Branches
Unknown
Tags
Unknown