Skip to content

Dominance Finder Out of Bounds Error #586

@will-leeson

Description

@will-leeson

When I attempt to build a DominanceFinder object, I am getting an Array Out of Bounds Exception:

Here is the snippet of my code which produces the error:

for(JavaSootMethod aMethod : aClass.getMethods()){ 
    if(aMethod.hasBody()){
        StmtGraph<?> graph = aMethod.getBody().getStmtGraph();
        df = new DominanceFinder(graph);
        ...

Here is the stack trace:

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 18
	at sootup.core.graph.DominanceFinder.getFirstDefinedBlockPredIdx(DominanceFinder.java:167)
	at sootup.core.graph.DominanceFinder.<init>(DominanceFinder.java:75)
	at com.lesslab.ProgramGraph.GraphBuilder.buildGraphs(GraphBuilder.java:193)
	at com.lesslab.ProgramGraph.App.main(App.java:45)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions