Skip to content

Commit

Permalink
Kernel: Write address validation was only checking end of write range
Browse files Browse the repository at this point in the history
Thanks to yyyyyyy for finding the bug! :^)
  • Loading branch information
awesomekling committed Dec 31, 2019
1 parent d8ef13a commit 903b159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kernel/Process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 903b159

Please sign in to comment.