mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-11 14:10:34 +00:00
Fix a signedness bug.
MFC after: 3 days Security: Local DoS
This commit is contained in:
parent
23471380b5
commit
23a28f3a0d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=161472
@ -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 New Issue
Block a user