summaryrefslogtreecommitdiffstats
path: root/sys-utils/readprofile.c
diff options
context:
space:
mode:
authorSami Kerola2019-01-13 20:48:59 +0100
committerSami Kerola2019-01-13 21:00:38 +0100
commitb22332dd4f0042e9fc7248aa918b991d684d8f28 (patch)
treed83f99a60a421e702573c721d8488dff2cbb3de9 /sys-utils/readprofile.c
parentlogin: add support for login.defs(5) LASTLOG_UID_MAX (diff)
downloadkernel-qcow2-util-linux-b22332dd4f0042e9fc7248aa918b991d684d8f28.tar.gz
kernel-qcow2-util-linux-b22332dd4f0042e9fc7248aa918b991d684d8f28.tar.xz
kernel-qcow2-util-linux-b22332dd4f0042e9fc7248aa918b991d684d8f28.zip
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>
Diffstat (limited to 'sys-utils/readprofile.c')
0 files changed, 0 insertions, 0 deletions