Check that the signal number is in range.
Submitted by: maxim MFC after: 1 week Approved by: pjd (mentor)
This commit is contained in:
parent
3097d55a39
commit
fd6afe791c
@ -946,7 +946,10 @@ const char *signames[] = {
|
||||
void
|
||||
ktrpsig(struct ktr_psig *psig)
|
||||
{
|
||||
(void)printf("SIG%s ", signames[psig->signo]);
|
||||
if (psig->signo > 0 && psig->signo < NSIG)
|
||||
(void)printf("SIG%s", signames[psig->signo]);
|
||||
else
|
||||
(void)printf("SIG%s ", psig->signo);
|
||||
if (psig->action == SIG_DFL)
|
||||
(void)printf("SIG_DFL\n");
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user