Skip to content
Snippets Groups Projects
Commit 2cfee542 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

added warning message about odd fixed calls

parent 42dd801d
No related branches found
No related tags found
No related merge requests found
Pipeline #4623 passed
...@@ -511,7 +511,15 @@ class FixCalls_t : public TransformStep_t ...@@ -511,7 +511,15 @@ class FixCalls_t : public TransformStep_t
return; return;
/* record the possibly new indirect branch target if this call gets fixed */ /* record the possibly new indirect branch target if this call gets fixed */
Instruction_t* newindirtarg=insn->getFallthrough(); const auto newindirtarg=insn->getFallthrough();
if(!newindirtarg)
{
cout << "Warning! No fallthrough for fixed call at " << hex
<< insn->getBaseID() << ":" << insn->getDisassembly()
<< "@" << insn->getAddress()->getVirtualOffset()
<< endl;
}
/* Disassemble the instruction */ /* Disassemble the instruction */
auto disasmp=DecodedInstruction_t::factory (insn); auto disasmp=DecodedInstruction_t::factory (insn);
...@@ -605,6 +613,7 @@ class FixCalls_t : public TransformStep_t ...@@ -605,6 +613,7 @@ class FixCalls_t : public TransformStep_t
/* If the fallthrough is not marked as indirectly branchable-to, then mark it so */ /* If the fallthrough is not marked as indirectly branchable-to, then mark it so */
if(newindirtarg && !newindirtarg->getIndirectBranchTargetAddress()) if(newindirtarg && !newindirtarg->getIndirectBranchTargetAddress())
{ {
......
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