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

fixed bug where we were pinning a NULL entry point

Former-commit-id: 3d50b3532b12c8232424797c0dbac8ec5fee4383
parent 1e101af3
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ void CinderellaPrep::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