mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 21:58:20 +00:00
syscalls: misc vulnerability fixes
This commit is contained in:
@@ -11,6 +11,7 @@ syscallret_t syscall_getsockopt(context_t *, int fd, int level, int optname, voi
|
||||
|
||||
if (!IS_USER_ADDRESS(val) || !IS_USER_ADDRESS(len)) {
|
||||
ret.errno = EFAULT;
|
||||
return ret;
|
||||
}
|
||||
|
||||
file_t *file = fd_get(fd);
|
||||
|
||||
Reference in New Issue
Block a user