Class RecursivePathBuilder
java.lang.Object
soot.jimple.infoflow.data.pathBuilders.AbstractAbstractionPathBuilder
soot.jimple.infoflow.data.pathBuilders.RecursivePathBuilder
- All Implemented Interfaces:
IAbstractionPathBuilder,IMemoryBoundedSolver
Recursive algorithm for reconstructing abstraction paths from sink to source
- Author:
- Steven Arzt
-
Nested Class Summary
Nested classes/interfaces inherited from interface soot.jimple.infoflow.data.pathBuilders.IAbstractionPathBuilder
IAbstractionPathBuilder.OnPathBuilderResultAvailableNested classes/interfaces inherited from interface soot.jimple.infoflow.memory.IMemoryBoundedSolver
IMemoryBoundedSolver.IMemoryBoundedSolverStatusNotification -
Field Summary
Fields inherited from class soot.jimple.infoflow.data.pathBuilders.AbstractAbstractionPathBuilder
config, logger, manager, resultAvailableHandlers -
Constructor Summary
ConstructorsConstructorDescriptionRecursivePathBuilder(InfoflowManager manager, heros.solver.CountingThreadPoolExecutor executor) Creates a new instance of theRecursivePathBuilderclass -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a new listener that will be notified of status changes in the solvervoidComputes the path of tainted data between the source and the sinkvoidForces the solver to terminate its tasks and stop processing new tasks.Gets the constructed result pathsIn case this solver was killed before it could complete its task, this method returns the reason for the abortion.booleanisKilled()Checks whether this solver was killed before it could complete its tasksbooleanChecks whether this solver is terminated, either by forced termination, or because it has finished all of its work.voidreset()Resets the solver to its initial state after it has been forcefully terminated.voidIncrementally runs the path builder after some paths have already been computed.Methods inherited from class soot.jimple.infoflow.data.pathBuilders.AbstractAbstractionPathBuilder
addResultAvailableHandler
-
Constructor Details
-
RecursivePathBuilder
public RecursivePathBuilder(InfoflowManager manager, heros.solver.CountingThreadPoolExecutor executor) Creates a new instance of theRecursivePathBuilderclass- Parameters:
manager- The data flow manager that gives access to the icfg and other objectsexecutor- The executor in which to run the path reconstruction tasks
-
-
Method Details
-
computeTaintPaths
Description copied from interface:IAbstractionPathBuilderComputes the path of tainted data between the source and the sink- Parameters:
res- The data flow tracker results
-
getResults
Description copied from interface:IAbstractionPathBuilderGets the constructed result paths- Returns:
- The constructed result paths
-
runIncrementalPathComputation
public void runIncrementalPathComputation()Description copied from interface:IAbstractionPathBuilderIncrementally runs the path builder after some paths have already been computed. This method is usually called after the taint propagation has finished when incremental path building has been used in between. -
forceTerminate
Description copied from interface:IMemoryBoundedSolverForces the solver to terminate its tasks and stop processing new tasks. This will kill the solver.- Parameters:
reason- The reason why the solver is terminated
-
isTerminated
public boolean isTerminated()Description copied from interface:IMemoryBoundedSolverChecks whether this solver is terminated, either by forced termination, or because it has finished all of its work.- Returns:
- True if this solver is terminated, otherwise false
-
isKilled
public boolean isKilled()Description copied from interface:IMemoryBoundedSolverChecks whether this solver was killed before it could complete its tasks- Returns:
- True if this solver was killed before it could complete its tasks, otherwise false
-
reset
public void reset()Description copied from interface:IMemoryBoundedSolverResets the solver to its initial state after it has been forcefully terminated. After calling this method, the solver is expected to accept new tasks. -
addStatusListener
Description copied from interface:IMemoryBoundedSolverAdds a new listener that will be notified of status changes in the solver- Parameters:
listener- The listener that will be notified when the status of the solver changes
-
getTerminationReason
Description copied from interface:IMemoryBoundedSolverIn case this solver was killed before it could complete its task, this method returns the reason for the abortion. Otherwise, this method returns null.- Returns:
- The reason for the abortion in case the solver was killed, otherwise null
-