Skip to content
Snippets Groups Projects
Commit f0314a0a authored by an7s's avatar an7s
Browse files

check for NULL entry point

Former-commit-id: 709f7fddb026669d007a764946edb0c47e592bcf
parent 29d28408
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ void InferFn::pinAllFunctionEntryPoints()
if (!fn) continue;
Instruction_t *insn = fn->GetEntryPoint();
if(insn && insn->GetAddress())
if(insn && insn->GetAddress() && insn->GetAddress()->GetVirtualOffset() > 0)
{
insn->SetIndirectBranchTargetAddress(insn->GetAddress());
printf("inferfn: pinning function entry point: %p\n", insn->GetAddress()->GetVirtualOffset());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment