Skip to content

Commit

Permalink
Merge pull request #2701 from mickdermack/pr-jitnull
Browse files Browse the repository at this point in the history
Prevent nullptr dereference on a crash with no JIT present
  • Loading branch information
degasus committed Jul 5, 2015
2 parents f03f9cc + 2b2af12 commit 009148d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/Core/Core/PowerPC/JitInterface.cpp
Expand Up @@ -203,6 +203,12 @@ namespace JitInterface

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);
}

Expand Down

0 comments on commit 009148d

Please sign in to comment.