mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 14:24:54 +00:00
Merge pull request #13565 from LillyJadeKatrin/retroachievements-end-of-memory-bug
Fix memory bounds error in achievements dev
This commit is contained in:
commit
8f3483fdd4
1 changed files with 1 additions and 1 deletions
|
@ -1318,7 +1318,7 @@ u32 AchievementManager::MemoryPeeker(u32 address, u8* buffer, u32 num_bytes, rc_
|
|||
if (instance.m_dll_found)
|
||||
{
|
||||
std::lock_guard lg{instance.m_memory_lock};
|
||||
if (u64(address) + num_bytes >= instance.m_cloned_memory.size())
|
||||
if (u64(address) + num_bytes > instance.m_cloned_memory.size())
|
||||
{
|
||||
ERROR_LOG_FMT(ACHIEVEMENTS,
|
||||
"Attempt to read past memory size: size {} address {} write length {}",
|
||||
|
|
Loading…
Add table
Reference in a new issue