Class ContextInsensitiveSourceFinder

All Implemented Interfaces:
IAbstractionPathBuilder, IMemoryBoundedSolver

public class ContextInsensitiveSourceFinder extends ConcurrentAbstractionPathBuilder
Class for reconstructing abstraction paths from sinks to source
Author:
Steven Arzt
  • Constructor Details

    • ContextInsensitiveSourceFinder

      public ContextInsensitiveSourceFinder(InfoflowManager manager, InterruptableExecutor executor)
      Creates a new instance of the ContextInsensitiveSourceFinder class
      Parameters:
      manager - The data flow manager that gives access to the icfg and other objects
      executor - The executor in which to run the path reconstruction tasks
    • ContextInsensitiveSourceFinder

      public ContextInsensitiveSourceFinder(InfoflowManager manager, InterruptableExecutor executor, int numTasks)
      Creates a new instance of the ContextInsensitiveSourceFinder class
      Parameters:
      manager - The data flow manager that gives access to the icfg and other objects
      executor - The executor in which to run the path reconstruction tasks
      numTasks - The maximum number of abstractions for which a path reconstruction will be performed
  • Method Details

    • triggerComputationForNeighbors

      protected boolean triggerComputationForNeighbors()
      Description copied from class: ConcurrentAbstractionPathBuilder
      Specifies whether the class shall create separate path reconstruction tasks for the neighbors of the abstractions that arrive at the sink
      Specified by:
      triggerComputationForNeighbors in class ConcurrentAbstractionPathBuilder
      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

      protected Runnable getTaintPathTask(AbstractionAtSink abs)
      Description copied from class: ConcurrentAbstractionPathBuilder
      Gets 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:
      getTaintPathTask in class ConcurrentAbstractionPathBuilder
      Parameters:
      abs - The abstraction for which to compute the result paths
    • runIncrementalPathComputation

      public void runIncrementalPathComputation()
      Description copied from interface: IAbstractionPathBuilder
      Incrementally 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

      public void computeTaintPaths(Set<AbstractionAtSink> res)
      Description copied from interface: IAbstractionPathBuilder
      Computes the path of tainted data between the source and the sink
      Specified by:
      computeTaintPaths in interface IAbstractionPathBuilder
      Overrides:
      computeTaintPaths in class ConcurrentAbstractionPathBuilder
      Parameters:
      res - The data flow tracker results