]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r316802 (cem): bsdinstall(8): Sprinkle a snprintf to fixed size buffer
authoremaste <emaste@FreeBSD.org>
Thu, 14 Sep 2017 00:39:08 +0000 (00:39 +0000)
committeremaste <emaste@FreeBSD.org>
Thu, 14 Sep 2017 00:39:08 +0000 (00:39 +0000)
commit345d61c9f4b7a8ba68c046aa498fb159614573cf
tree0d89833b39371258bca4edacac702882f42de13b
parentddac6973f64bbe6667604927b2a0eb87e597c556
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
usr.sbin/bsdinstall/partedit/gpart_ops.c