mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 06:58: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;
|
syscallret retv;
|
||||||
retv.ret = -1;
|
retv.ret = -1;
|
||||||
|
if(st > USER_SPACE_END || path > USER_SPACE_END){
|
||||||
if(st > USER_SPACE_END){
|
|
||||||
retv.errno = EFAULT;
|
retv.errno = EFAULT;
|
||||||
return retv;
|
return retv;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user