]> 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)
committerOlof Sivertsson <osivertsson@gmail.com>
Thu, 8 Sep 2016 20:32:18 +0000 (22:32 +0200)
commit586bfb765595d3076e0907f4561c832fdc798e21
treec683c2bb6a883b51cc94c9cfb1ecf1df40530e59
parent8abd0c92ab7576280b2a601c12ff749ab41c117f
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.
proc/sig.c
testsuite/kill.test/kill.exp