mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03:00
Kernel: Allow Userspace<T> pointers with invalid content
It's not an error to create a Userspace<T> that points to kernel memory as the point of Userspace<T> is not to validate the address, but rather to choose safe overloads that do validation before any data transfer takes place. Fixes #4581.
This commit is contained in:
parent
bceee87f61
commit
20e2700952
Notes:
sideshowbarker
2024-07-19 00:31:11 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/20e27009523
@ -60,7 +60,6 @@ public:
|
|||||||
Userspace(FlatPtr ptr)
|
Userspace(FlatPtr ptr)
|
||||||
: m_ptr(ptr)
|
: m_ptr(ptr)
|
||||||
{
|
{
|
||||||
ASSERT(m_ptr < 0xc0000000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FlatPtr ptr() const { return m_ptr; }
|
FlatPtr ptr() const { return m_ptr; }
|
||||||
|
Loading…
Reference in New Issue
Block a user