mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-27 11:48:59 +00:00
Kernel: Fix bug where mprotect() would ignore setting PROT_WRITE
A typo in Region::set_writable() caused us to update the readable flag rather than the writable flag.
This commit is contained in:
parent
64e77c262e
commit
7dc9c90f83
Notes:
sideshowbarker
2024-07-19 10:59:01 +09:00
Author: https://github.com/awesomekling
Commit: 7dc9c90f83
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ public:
|
|||
void set_writable(bool b)
|
||||
{
|
||||
if (b)
|
||||
m_access |= Access::Read;
|
||||
m_access |= Access::Write;
|
||||
else
|
||||
m_access &= ~Access::Write;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue