From: Samuel Thibault Date: Sat, 6 Jun 2020 23:35:18 +0000 (+0200) Subject: hurd: Reject raising invalid signals X-Git-Tag: upstream/2.34~1846 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=785ec62dbd37b0b236c9a7fcc0ac71a2aeb472de;p=platform%2Fupstream%2Fglibc.git hurd: Reject raising invalid signals * hurd/hurd-raise.c (_hurd_raise_signal): Return EINVAL if signo <= 0 or signo >= NSI. --- diff --git a/hurd/hurd-raise.c b/hurd/hurd-raise.c index d53fd41..af46437 100644 --- a/hurd/hurd-raise.c +++ b/hurd/hurd-raise.c @@ -28,6 +28,9 @@ int _hurd_raise_signal (struct hurd_sigstate *ss, int signo, const struct hurd_signal_detail *detail) { + if (signo <= 0 || signo >= NSIG) + return EINVAL; + if (ss == NULL) { ss = _hurd_self_sigstate ();