summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernando S <fsahmkow27@gmail.com>2023-05-07 17:06:36 +0200
committerGitHub <noreply@github.com>2023-05-07 17:06:36 +0200
commit1166ca3a5772e92cfd39eb0be7d769aa6f13e967 (patch)
tree5d247c3715e5b8fca4aa2ce19f6ed82b30f6217b
parentMerge pull request #10180 from german77/debug (diff)
parentFix address space allocator slow path to avoid OOB (diff)
downloadyuzu-1166ca3a5772e92cfd39eb0be7d769aa6f13e967.tar
yuzu-1166ca3a5772e92cfd39eb0be7d769aa6f13e967.tar.gz
yuzu-1166ca3a5772e92cfd39eb0be7d769aa6f13e967.tar.bz2
yuzu-1166ca3a5772e92cfd39eb0be7d769aa6f13e967.tar.lz
yuzu-1166ca3a5772e92cfd39eb0be7d769aa6f13e967.tar.xz
yuzu-1166ca3a5772e92cfd39eb0be7d769aa6f13e967.tar.zst
yuzu-1166ca3a5772e92cfd39eb0be7d769aa6f13e967.zip
-rw-r--r--src/common/address_space.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/address_space.inc b/src/common/address_space.inc
index c97dc8651..1ee82df53 100644
--- a/src/common/address_space.inc
+++ b/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() &&