mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
syscalls: stat: add another case that returns EFAULT
This commit is contained in:
@@ -12,8 +12,7 @@ syscallret syscall_stat(const char* path, stat* st){
|
||||
|
||||
syscallret retv;
|
||||
retv.ret = -1;
|
||||
|
||||
if(st > USER_SPACE_END){
|
||||
if(st > USER_SPACE_END || path > USER_SPACE_END){
|
||||
retv.errno = EFAULT;
|
||||
return retv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user