mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Kernel: Range::contains() should reject ranges with 2^32 wrap-around
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user