]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r318790, r319336
authorasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 7 Jul 2017 15:09:08 +0000 (15:09 +0000)
committerasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 7 Jul 2017 15:09:08 +0000 (15:09 +0000)
commit041efa7de0b88dd4e4e75deb51fc3dd4a481a2b0
treef86c032af4e5c00aefa3e6d7b00fd829db669f4e
parent7aafb3b7cde05585fb0f14f3836fa731224551b7
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@320780 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/bootparamd/bootparamd/bootparamd.c