]> granicus.if.org Git - procps-ng/commit
kill: Fix free() with bad pointer on SIG-prefixed signal-name
authorOlof Sivertsson <osivertsson@gmail.com>
Thu, 8 Sep 2016 06:32:43 +0000 (08:32 +0200)
committerCraig Small <csmall@enc.com.au>
Sat, 10 Sep 2016 23:58:55 +0000 (09:58 +1000)
commit95ed10ff438ee1c850bbd235f1bd98e6113ccfe6
tree4d3fb975f29aa033373c601789912eab882be713
parente02d9f554d614843108a2148a51b331e65c09169
kill: Fix free() with bad pointer on SIG-prefixed signal-name

kill -l SIGHUP (or any other signal-name prefixed with "SIG")
would cause free() to be called with a bad pointer instead of
a pointer to what was allocated. Fix this and add test-case.
lib/signals.c
testsuite/kill.test/kill.exp