summaryrefslogtreecommitdiffstats
path: root/usr.bin/lam
diff options
context:
space:
mode:
authorasomers <asomers@FreeBSD.org>2015-06-09 19:41:16 +0000
committerasomers <asomers@FreeBSD.org>2015-06-09 19:41:16 +0000
commitfe9825745fcfd8a9662704e611007570a1ca1387 (patch)
tree67e600e04ff5273088ba60a0ff5e0ab0cb2c26cc /usr.bin/lam
parent1e1007b43a9b2b1c1946d7523093ca25dab3707a (diff)
downloadFreeBSD-src-fe9825745fcfd8a9662704e611007570a1ca1387.zip
FreeBSD-src-fe9825745fcfd8a9662704e611007570a1ca1387.tar.gz
MFC r283115
Properly null-terminate strings in a kernel dump header. A version string longer than 192 bytes will cause the version field of a dump header to overflow. strncpy doesn't null terminate it, so savecore will print a corrupted info file. Using strlcpy fixes the bug.
Diffstat (limited to 'usr.bin/lam')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud