mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Fix a signedness bug.
MFC after: 3 days Security: Local DoS
This commit is contained in:
parent
23471380b5
commit
23a28f3a0d
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue