mirror of
https://github.com/yuzu-emu/yuzu-mainline.git
synced 2024-12-12 15:34:18 +01:00
Fix address space allocator slow path to avoid OOB
This commit is contained in:
parent
f36b5dfd18
commit
6fed48b3a4
@ -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() &&
|
||||
|
Loading…
Reference in New Issue
Block a user