syscalls: stat: add another case that returns EFAULT

This commit is contained in:
Matheus
2022-08-28 22:44:37 -03:00
parent 56bee8be77
commit 3066fdbb4f
+1 -2
View File
@@ -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;
}