HomeFreeBSD

MFC r316802 (cem): bsdinstall(8): Sprinkle a snprintf to fixed size buffer

Description

MFC r316802 (cem): bsdinstall(8): Sprinkle a snprintf to fixed size buffer

Use a snprintf to write an environment variable to a fixed-size buffer to
avoid stack overflow.

Reported by: Coverity (CWE-120)
CID: 1238926
Sponsored by: The FreeBSD Foundation

Details

Provenance
emasteAuthored on
Parents
rS323568: MFC r323448: bsdinstall: Ignore error return from newaliases(1)
Branches
Unknown
Tags
Unknown