Created attachment 3920 [details] proposed patch The attached patch handles invalid signal numbers in linuxthreads. Right now, when an invalid signal number is issued, libpthread does not handle it appropriately and it tries to restore the signal handler instead. However, since the sig variable can contain any number, the sighandler[sig] can easily lead to memory violation error and a SIGSEGV is thrown. The patch solves this problem by ensuring that only valid signal numbers will be handled by libpthread.
Created attachment 3926 [details] Update patch including the Signed-off-by line
use ARRAY_SIZE(__sighandler) rather than NSIG
Agreed but NSIG is used everywhere in this file so either I need to replace every instant of NSIG with ARRAY_SIZE(__sighandler) or use my patch as is so there is a constant reference to the way NSIG is expressed..
not exactly a great reason for adding more bad code ;)