Fix a signedness bug.
MFC after: 3 days Security: Local DoS
This commit is contained in:
parent
23471380b5
commit
23a28f3a0d
@ -934,7 +934,7 @@ kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data)
|
||||
break;
|
||||
|
||||
case PT_LWPINFO:
|
||||
if (data == 0 || data > sizeof(*pl)) {
|
||||
if (data <= 0 || data > sizeof(*pl)) {
|
||||
error = EINVAL;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user