mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-11 06:40:39 +00:00
Fix overflow in PPUThread stack frame dump
This commit is contained in:
parent
745ed8331c
commit
fdcc5adc8d
@ -492,7 +492,7 @@ std::string ppu_thread::dump() const
|
||||
stack_max += 4096;
|
||||
}
|
||||
|
||||
for (u64 sp = vm::read64(stack_ptr); sp >= stack_min && sp + 0x200 < stack_max; sp = vm::read64(static_cast<u32>(sp)))
|
||||
for (u64 sp = vm::read64(stack_ptr); sp >= stack_min && std::max(sp, sp + 0x200) < stack_max; sp = vm::read64(static_cast<u32>(sp)))
|
||||
{
|
||||
// TODO: print also function addresses
|
||||
fmt::append(ret, "> from 0x%08llx (0x0)\n", vm::read64(static_cast<u32>(sp + 16)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user