commit | b22332dd4f0042e9fc7248aa918b991d684d8f28 | [log] [tgz] |
---|---|---|
author | Sami Kerola <kerolasa@iki.fi> | Sun Jan 13 19:48:59 2019 +0000 |
committer | Sami Kerola <kerolasa@iki.fi> | Sun Jan 13 20:00:38 2019 +0000 |
tree | d83f99a60a421e702573c721d8488dff2cbb3de9 | |
parent | 1a83c00d888fad89f09c4acf2033790d5dcae48e [diff] |
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>