]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r318790, r319336
authorasomers <asomers@FreeBSD.org>
Wed, 5 Jul 2017 15:31:42 +0000 (15:31 +0000)
committerasomers <asomers@FreeBSD.org>
Wed, 5 Jul 2017 15:31:42 +0000 (15:31 +0000)
commitbceed20938051b503aa8d8240f4f9cf0cb66dcee
tree473f4a36e1e0450f0953f31ee4bbcae018394ab1
parent3f0d261f813c3b4177b881eb99b41b17f1caa4c9
MFC r318790, r319336

r318790:
Fix a buffer overflow in bootparamd(8)

If /etc/bootparams contains a line with an excessively long pathname, and a
client asks for that path, then bootparamd will overflow a buffer and crash
while parsing that line.  This is not remotely exploitable since it requires
a malformed /etc/bootparams file.

Reported by: Coverity
CID: 1305954
Sponsored by: Spectra Logic Corp

r319336:
Fix uninitialized variable in bootparamd.c

Restore line that was accidentally deleted in change 318790

Reported by: Coverity
CID: 1375855
X-MFC-With: 318790
Sponsored by: Spectra Logic Corp
usr.sbin/bootparamd/bootparamd/bootparamd.c