mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-23 01:14:52 +01:00
The signal number has to be less than NSIG strictly.
PR: misc/69768 Submitted by: bronek MFC after: 1 week
This commit is contained in:
parent
f217d18ac1
commit
79d0f70f09
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132851
@ -221,7 +221,7 @@ main(int ac, char **av)
|
||||
sig = strtol(*av, &ep, 10);
|
||||
if (!*av || *ep)
|
||||
errx(1, "illegal signal number: %s", *av);
|
||||
if (sig < 0 || sig > NSIG)
|
||||
if (sig < 0 || sig >= NSIG)
|
||||
nosig(*av);
|
||||
} else
|
||||
nosig(*av);
|
||||
|
Loading…
Reference in New Issue
Block a user