Class ContextInsensitiveSourceFinder
java.lang.Object
soot.jimple.infoflow.data.pathBuilders.AbstractAbstractionPathBuilder
soot.jimple.infoflow.data.pathBuilders.ConcurrentAbstractionPathBuilder
soot.jimple.infoflow.data.pathBuilders.ContextInsensitiveSourceFinder
- All Implemented Interfaces:
IAbstractionPathBuilder,IMemoryBoundedSolver
Class for reconstructing abstraction paths from sinks 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.ConcurrentAbstractionPathBuilder
executor, resultsFields inherited from class soot.jimple.infoflow.data.pathBuilders.AbstractAbstractionPathBuilder
config, logger, manager, resultAvailableHandlers -
Constructor Summary
ConstructorsConstructorDescriptionContextInsensitiveSourceFinder(InfoflowManager manager, InterruptableExecutor executor) Creates a new instance of theContextInsensitiveSourceFinderclassContextInsensitiveSourceFinder(InfoflowManager manager, InterruptableExecutor executor, int numTasks) Creates a new instance of theContextInsensitiveSourceFinderclass -
Method Summary
Modifier and TypeMethodDescriptionvoidComputes the path of tainted data between the source and the sinkprotected RunnableGets the task that computes the result paths for a single abstraction.voidIncrementally runs the path builder after some paths have already been computed.protected booleanSpecifies whether the class shall create separate path reconstruction tasks for the neighbors of the abstractions that arrive at the sinkMethods inherited from class soot.jimple.infoflow.data.pathBuilders.ConcurrentAbstractionPathBuilder
addStatusListener, forceTerminate, getResults, getTerminationReason, isKilled, isTerminated, reset, scheduleDependentTaskMethods inherited from class soot.jimple.infoflow.data.pathBuilders.AbstractAbstractionPathBuilder
addResultAvailableHandler
-
Constructor Details
-
ContextInsensitiveSourceFinder
Creates a new instance of theContextInsensitiveSourceFinderclass- 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
-
ContextInsensitiveSourceFinder
public ContextInsensitiveSourceFinder(InfoflowManager manager, InterruptableExecutor executor, int numTasks) Creates a new instance of theContextInsensitiveSourceFinderclass- Parameters:
manager- The data flow manager that gives access to the icfg and other objectsexecutor- The executor in which to run the path reconstruction tasksnumTasks- The maximum number of abstractions for which a path reconstruction will be performed
-
-
Method Details
-
triggerComputationForNeighbors
protected boolean triggerComputationForNeighbors()Description copied from class:ConcurrentAbstractionPathBuilderSpecifies whether the class shall create separate path reconstruction tasks for the neighbors of the abstractions that arrive at the sink- Specified by:
triggerComputationForNeighborsin classConcurrentAbstractionPathBuilder- Returns:
- True if separate path reconstruction tasks shall be started for each neighbor of each abstraction that reaches a sink, false if only the abstraction itself shall trigger a path reconstruction task
-
getTaintPathTask
Description copied from class:ConcurrentAbstractionPathBuilderGets the task that computes the result paths for a single abstraction. If the concrete path building algorithm does not want to handle the given abstraction, it can return null to not execute anything.- Specified by:
getTaintPathTaskin classConcurrentAbstractionPathBuilder- Parameters:
abs- The abstraction for which to compute the 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. -
computeTaintPaths
Description copied from interface:IAbstractionPathBuilderComputes the path of tainted data between the source and the sink- Specified by:
computeTaintPathsin interfaceIAbstractionPathBuilder- Overrides:
computeTaintPathsin classConcurrentAbstractionPathBuilder- Parameters:
res- The data flow tracker results
-