Fix range

This commit is contained in:
Lander Gallastegi 2025-05-26 00:01:35 +02:00
parent c1cca209b8
commit 01ce538cd6

View File

@ -62,8 +62,8 @@ static bool SrtWalkerSignalHandler(void* context, void* fault_address) {
const u8* code_start = g_srt_codegen_start; const u8* code_start = g_srt_codegen_start;
const u8* code_end = code_start + g_srt_codegen.getSize(); const u8* code_end = code_start + g_srt_codegen.getSize();
const void* code = Common::GetRip(context); const void* code = Common::GetRip(context);
if (code < code_start || fault_address >= code) { if (code < code_start || code >= code_end) {
return false; return false; // Not in SRT code range
} }
// Patch instruction to zero register // Patch instruction to zero register