OSDN Git Service

linuxthreads/signals: do not restore handler for invalid signal
authorMarkos Chandras <markos.chandras@imgtec.com>
Wed, 23 Nov 2011 13:45:47 +0000 (13:45 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 15 Jan 2012 00:36:07 +0000 (19:36 -0500)
commit2b30ab7137da331d8ead24d244b8feb3e1028152
treefbea08412b940c8368ee0f3289e838006df3732e
parenta899b909abe14e8e35a81997c828201d1beaff78
linuxthreads/signals: do not restore handler for invalid signal

Invalid signals have no handlers so when trying to restore the old
handler to a bad signal a SIGSEGV occurs. This is because the library
tries to store the old handler to an invalid memory area where it things
the bad signal lives.

URL: https://bugs.busybox.net/show_bug.cgi?id=4640
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
libpthread/linuxthreads/signals.c