2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #10187 from Kelebek1/address_space

Fix address space allocator slow path to avoid OOB
This commit is contained in:
Fernando S 2023-05-07 17:06:36 +02:00 committed by GitHub
commit 1166ca3a57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -336,7 +336,7 @@ ALLOC_MEMBER(VaType)::Allocate(VaType size) {
ASSERT_MSG(false, "Unexpected allocator state!"); 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)}; auto search_successor{std::next(search_predecessor)};
while (search_successor != this->blocks.end() && while (search_successor != this->blocks.end() &&