02-27-2017, 05:47 PM -
(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 cacheI test this PR and see work and I look this name and think relate kd-11
gl: Ignore invalid buffer definitions; drop depth subresource restrictions
0.0.1-3975
a day ago by kd-11
I Change
Quote: if (context.gpr[1] < context.stack_addr)To
{
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);
}
Quote:if (context.gpr[1] < context.stack_addr)and see work resident evil code veronica
{
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;
}
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);
}