diff options
author | Fernando S <fsahmkow27@gmail.com> | 2023-05-07 17:06:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-07 17:06:36 +0200 |
commit | 1166ca3a5772e92cfd39eb0be7d769aa6f13e967 (patch) | |
tree | 5d247c3715e5b8fca4aa2ce19f6ed82b30f6217b | |
parent | Merge pull request #10180 from german77/debug (diff) | |
parent | Fix address space allocator slow path to avoid OOB (diff) | |
download | yuzu-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 |
Diffstat (limited to '')
-rw-r--r-- | src/common/address_space.inc | 2 |
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() && |