mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
parent
e438dd3c9b
commit
575c7ed414
1 changed files with 3 additions and 0 deletions
|
@ -563,6 +563,9 @@ int Process::sys$msyscall(void* address)
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (!is_user_address(VirtualAddress { address }))
|
||||
return -EFAULT;
|
||||
|
||||
auto* region = space().find_region_containing(Range { VirtualAddress { address }, 1 });
|
||||
if (!region)
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue