diff options
author | asomers <asomers@FreeBSD.org> | 2015-06-09 19:41:16 +0000 |
---|---|---|
committer | asomers <asomers@FreeBSD.org> | 2015-06-09 19:41:16 +0000 |
commit | fe9825745fcfd8a9662704e611007570a1ca1387 (patch) | |
tree | 67e600e04ff5273088ba60a0ff5e0ab0cb2c26cc /usr.bin/lam | |
parent | 1e1007b43a9b2b1c1946d7523093ca25dab3707a (diff) | |
download | FreeBSD-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