mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
Core: Add range checks to some helpers and similar.
This commit is contained in:
1 parent
e9ce0d0b5e
commit
dea9cac16c
10 files changed
+32
-27
No files matched your search
@@ -511,9 +511,9 @@ int ElfReader::LoadInto(u32 loadAddress, bool fromTop)
|
||||
ERROR_LOG(LOADER, "Segment %d pointer invalid - truncated?", i);
|
||||
continue;
|
||||
}
|
||||
u8 *dst = Memory::GetPointerWrite(writeAddr);
|
||||
u32 srcSize = p->p_filesz;
|
||||
u32 dstSize = p->p_memsz;
|
||||
u8 *dst = Memory::GetPointerWriteRange(writeAddr, dstSize);
|
||||
|
||||
if (srcSize < dstSize)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user