If we see a call to an unknown method, conservatively add edges to all catch handlers
This is an attempt to fix issue #123
This commit is contained in:
parent
dff20ac49c
commit
4228bac5ff
|
@ -291,6 +291,10 @@ public class ShrikeCFG extends AbstractCFG<IInstruction, ShrikeCFG.BasicBlock> i
|
|||
e.printStackTrace();
|
||||
Assertions.UNREACHABLE();
|
||||
}
|
||||
IMethod mTarget = cha.resolveMethod(target);
|
||||
if (mTarget == null) {
|
||||
goToAllHandlers = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -297,6 +297,10 @@ public class DexCFG extends AbstractCFG<Instruction, DexCFG.BasicBlock> implemen
|
|||
e.printStackTrace();
|
||||
Assertions.UNREACHABLE();
|
||||
}
|
||||
IMethod mTarget = cha.resolveMethod(target);
|
||||
if (mTarget == null) {
|
||||
goToAllHandlers = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue