]> granicus.if.org Git - procps-ng/commit
pgrep: Always null-terminate the cmd*[] buffers.
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)
commit40c42543184ebed1957f7213d44944a2f3a2ab7a
tree1fc4b18c87d84fea29f7941c96003b770ec24a5b
parent35f58d8a3e090ea02068effdfed41ec12d1d917e
pgrep: Always null-terminate the cmd*[] buffers.

Otherwise, man strncpy: "If there is no null byte among the first n
bytes of src, the string placed in dest will not be null-terminated."
pgrep.c