Kernel: Write address validation was only checking end of write range

Thanks to yyyyyyy for finding the bug! :^)
This commit is contained in:
Andreas Kling 2019-12-31 18:17:27 +01:00
parent d8ef13a426
commit 903b159856
Notes: sideshowbarker 2024-07-19 10:30:42 +09:00

View file

@ -2010,7 +2010,7 @@ bool Process::validate_write(void* address, ssize_t size) const
if (!MM.validate_user_write(*this, last_address))
return false;
}
return MM.validate_user_write(*this, last_address);
return MM.validate_user_write(*this, first_address);
}
pid_t Process::sys$getsid(pid_t pid)