bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: raise(-1) succeeds for programs linked against libpthread


From: Samuel Thibault
Subject: Re: raise(-1) succeeds for programs linked against libpthread
Date: Tue, 13 Oct 2020 15:57:44 +0200
User-agent: NeoMutt/20170609 (1.8.3)

Ludovic Courtès, le mar. 13 oct. 2020 15:41:37 +0200, a ecrit:
> ‘pthread_kill’ passes the signal number to ‘_hurd_raise_signal’, which
> assumes it is valid:
[...]
> I suppose that before calling ‘sigaddset’, it should check whether SIGNO
> is within bounds, along the lines of:
> 
>   if (signo < 2 || signo >= _NSIG)
>     return EINVAL;
> 
> Does that make sense?

Probably, yes. Why excluding SIGHUP?

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]