Skip to content

Commit

Permalink
Added a check to the pointer for memcpy
Browse files Browse the repository at this point in the history
This check enables the newer builds of daedalus to run.
  • Loading branch information
z2442 committed Jan 5, 2019
1 parent 99c8423 commit e5b75dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Core/HLE/sceKernelInterrupt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,9 @@ const HLEFunction Kernel_Library[] =

static u32 sysclib_memcpy(u32 dst, u32 src, u32 size) {
ERROR_LOG(SCEKERNEL, "Untested sysclib_memcpy(dest=%08x, src=%08x, size=%i)", dst, src, size);
memcpy(Memory::GetPointer(dst), Memory::GetPointer(src), size);
if (Memory::IsValidRange(dst, size) && Memory::IsValidRange(src, size)) {
memcpy(Memory::GetPointer(dst), Memory::GetPointer(src), size);
}
return dst;
}

Expand Down

0 comments on commit e5b75dc

Please sign in to comment.