mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-06 00:45:09 +01:00
Fix address space allocator slow path to avoid OOB
This commit is contained in:
parent
4a4f6df792
commit
12c88babd0
@ -470,7 +470,7 @@ namespace skyline {
|
||||
if (this->blocks.size() <= 2)
|
||||
throw exception("Unexpected allocator state!");
|
||||
|
||||
auto searchPredecessor{this->blocks.begin()};
|
||||
auto searchPredecessor{std::next(this->blocks.begin())};
|
||||
auto searchSuccessor{std::next(searchPredecessor)};
|
||||
|
||||
while (searchSuccessor != this->blocks.end() &&
|
||||
|
Loading…
Reference in New Issue
Block a user