]> git.ipfire.org Git - thirdparty/util-linux.git/commit
last: fix wtmp user name buffer overflow [asan]
authorSami Kerola <kerolasa@iki.fi>
Sun, 13 Jan 2019 19:48:59 +0000 (19:48 +0000)
committerSami Kerola <kerolasa@iki.fi>
Sun, 13 Jan 2019 20:00:38 +0000 (20:00 +0000)
commitb22332dd4f0042e9fc7248aa918b991d684d8f28
treed83f99a60a421e702573c721d8488dff2cbb3de9
parent1a83c00d888fad89f09c4acf2033790d5dcae48e
last: fix wtmp user name buffer overflow [asan]

Ensure utmp user name field is null terminated.  Without that getpwnam() can
buffer overflow, when wtmp file is malformed.

Addresses: https://github.com/karelzak/util-linux/issues/715
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
login-utils/last.c