soot icon indicating copy to clipboard operation
soot copied to clipboard

Can soot give phantom methods when build call graph?

Open buriedpot opened this issue 3 years ago • 1 comments

I need to use Soot to build the call graph, either using CHA or Spark. However, the methods called by some call sites may not be defined in the JAR packages provided by me. Can I obtain these call sites without target method definition after Soot builds the call graph?

e.g. When I use Soot to analyze A.jar's call graph, maybe A.jar can call some method defined in other jars. But I just provided A.jar for the soot argument list, so there must be some call sites in A.jar that cannot find target method definition, thus no such edge in callgraph. Can I obtain these callsites for further research by soot? Thank you!

buriedpot avatar Jan 24 '22 10:01 buriedpot

Hi @buriedpot,

Consider using the -allow-phantom-refs option.

JordanSamhi avatar Jan 25 '22 17:01 JordanSamhi