Browse Source
Merge pull request #10187 from Kelebek1/address_space
Fix address space allocator slow path to avoid OOB
pull/15/merge
Fernando S
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/common/address_space.inc
|
|
|
@ -336,7 +336,7 @@ ALLOC_MEMBER(VaType)::Allocate(VaType size) { |
|
|
|
ASSERT_MSG(false, "Unexpected allocator state!"); |
|
|
|
} |
|
|
|
|
|
|
|
auto search_predecessor{this->blocks.begin()}; |
|
|
|
auto search_predecessor{std::next(this->blocks.begin())}; |
|
|
|
auto search_successor{std::next(search_predecessor)}; |
|
|
|
|
|
|
|
while (search_successor != this->blocks.end() && |
|
|
|
|