Resident Evil Code Veronica X [NPUB30467]
Started by AAKH1361




33 posts in this topic
AAKH1361
Member


0
294 posts 122 threads Joined: Aug 2017
02-27-2017, 05:47 PM -
#6
(02-27-2017, 03:32 PM)Annie Wrote: It's not kd-11's PR, it's a Nekotekina PR that was made a few days ago regarding Stack Overflows.

Quote:Pull request #2391 - [WIP] Improve texture cache
gl: Ignore invalid buffer definitions; drop depth subresource restrictions
0.0.1-3975
a day ago by kd-11
I test this PR and see work and I look this name and think relate kd-11


I Change
Quote: if (context.gpr[1] < context.stack_addr)
{
fmt::throw_exception("Stack overflow (size=0x%x, align=0x%x, SP=0x%llx, stack=*0x%x)" HERE, size, align_v, old_pos, context.stack_addr);
}
To

Quote:if (context.gpr[1] < context.stack_addr)
{
const u32 addr = static_cast<u32>(context.gpr[1]);
vm::ps3::_ref<nse_t<u32>>(addr + size) = old_pos;
std::memset(vm::base(addr), 0, size);
return addr;
}
and see work resident evil code veronica

I Now look and see Nekotekina change this line
Quote: if (old_pos >= context.stack_addr && old_pos < context.stack_addr + context.stack_size && context.gpr[1] < context.stack_addr)
{
fmt::throw_exception("Stack overflow (size=0x%x, align=0x%x, SP=0x%llx, stack=*0x%x)" HERE, size, align_v, old_pos, context.stack_addr);
}


Messages In This Thread
RE: Resident Evil Code Veronica X [NPUB30467] - by aakh1361 - 02-27-2017, 05:47 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)