mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 10:18:40 +12:00
Fix overflow in PPUThread stack frame dump
This commit is contained in:
parent
745ed8331c
commit
fdcc5adc8d
1 changed files with 1 additions and 1 deletions
|
@ -492,7 +492,7 @@ std::string ppu_thread::dump() const
|
||||||
stack_max += 4096;
|
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
|
// TODO: print also function addresses
|
||||||
fmt::append(ret, "> from 0x%08llx (0x0)\n", vm::read64(static_cast<u32>(sp + 16)));
|
fmt::append(ret, "> from 0x%08llx (0x0)\n", vm::read64(static_cast<u32>(sp + 16)));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue