Merge pull request #2701 from mickdermack/pr-jitnull
Prevent nullptr dereference on a crash with no JIT present
This commit is contained in:
commit
009148d401
1 file changed
+6
@@ -203,6 +203,12 @@ namespace JitInterface
|
|||||||
|
|
||||||
bool HandleFault(uintptr_t access_address, SContext* ctx)
|
bool HandleFault(uintptr_t access_address, SContext* ctx)
|
||||||
{
|
{
|
||||||
|
// Prevent nullptr dereference on a crash with no JIT present
|
||||||
|
if (!jit)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return jit->HandleFault(access_address, ctx);
|
return jit->HandleFault(access_address, ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user