]> granicus.if.org Git - procps-ng/commit
proc/sysinfo.c: Fix off-by-one in get_pid_digits().
authorQualys Security Advisory <qsa@qualys.com>
Thu, 1 Jan 1970 00:00:00 +0000 (00:00 +0000)
committerCraig Small <csmall@enc.com.au>
Fri, 18 May 2018 21:32:21 +0000 (07:32 +1000)
commita33be338856a436e41f2cbdcfd4b25f09dc18358
tree38c208594c52d80ab27fb459978fc53cbd017316
parent8136a7a664f7efa5d9249ad8078f93244e483a8c
proc/sysinfo.c: Fix off-by-one in get_pid_digits().

At "pidbuf[rc] = '\0';" if "rc = read()" returns "sizeof pidbuf"
(unlikely to ever happen, but still).
proc/sysinfo.c