mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:38:12 +00:00
Kernel: Use Userspace<T> for sys$read() and sys$stat()
Add validation helper overloads as needed.
This commit is contained in:
parent
e39a410546
commit
314dbc10d4
5 changed files with 67 additions and 7 deletions
|
@ -46,7 +46,7 @@ int Process::sys$fstat(int fd, stat* user_statbuf)
|
|||
return rc;
|
||||
}
|
||||
|
||||
int Process::sys$stat(const Syscall::SC_stat_params* user_params)
|
||||
int Process::sys$stat(Userspace<const Syscall::SC_stat_params*> user_params)
|
||||
{
|
||||
REQUIRE_PROMISE(rpath);
|
||||
Syscall::SC_stat_params params;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue