mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Kernel: Range::contains() should reject ranges with 2^32 wrap-around
This commit is contained in:
parent
31d1c82621
commit
31a141bd10
Notes:
sideshowbarker
2024-07-19 09:44:52 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/31a141bd101
@ -57,6 +57,8 @@ public:
|
||||
|
||||
bool contains(VirtualAddress base, size_t size) const
|
||||
{
|
||||
if (base.offset(size) < base)
|
||||
return false;
|
||||
return base >= m_base && base.offset(size) <= end();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user