]> granicus.if.org Git - procps-ng/commit
pgrep: Don't segfault with no match
authorCraig Small <csmall@enc.com.au>
Fri, 6 Apr 2018 13:00:29 +0000 (23:00 +1000)
committerCraig Small <csmall@enc.com.au>
Fri, 6 Apr 2018 13:00:29 +0000 (23:00 +1000)
commit0b488c7f5cac12408a3808daa42eec4efa63e955
tree02b66919e7cd7c78a2c85d377ba92179f9f553e8
parent2fc2427ed374f96a5079e4b8b4a6d36192c873ac
pgrep: Don't segfault with no match

If pgrep is run with a non-program name match and there are
no matches, it segfaults.

The testsuite thinks zero bytes sent, and zero bytes sent
because the program crashed is the same :/

References:
 commit 1aacf4af7f199d77fc9386e249eee654f59880db
 https://bugs.debian.org/894917

Signed-off-by: Craig Small <csmall@enc.com.au>
NEWS
pgrep.c