Interface ISourceSinkManager

All Known Subinterfaces:
IReversibleSourceSinkManager
All Known Implementing Classes:
BaseSourceSinkManager, ConditionalFlowSourceSinkManagerWrapper, DefaultSourceSinkManager, EmptySourceSinkManager, MethodBasedSourceSinkManager

public interface ISourceSinkManager
the SourceSinkManager can tell if a statement contains a source or a sink
  • Method Summary

    Modifier and Type
    Method
    Description
    getSinkInfo(soot.jimple.Stmt sCallSite, InfoflowManager manager, AccessPath ap)
    Checks if the given access path at this statement will leak.
    getSourceInfo(soot.jimple.Stmt sCallSite, InfoflowManager manager)
    Determines if a method called by the Stmt is a source method or not.
    void
    Initialization method that is called after the Soot instance has been created and before the actual data flow tracking is started.
  • Method Details

    • initialize

      void initialize()
      Initialization method that is called after the Soot instance has been created and before the actual data flow tracking is started.
    • getSourceInfo

      SourceInfo getSourceInfo(soot.jimple.Stmt sCallSite, InfoflowManager manager)
      Determines if a method called by the Stmt is a source method or not. If so, additional information is returned
      Parameters:
      sCallSite - a Stmt which should include an invokeExrp calling a method
      manager - The manager object for interacting with the solver
      Returns:
      A SourceInfo object containing additional information if this call is a source, otherwise null
    • getSinkInfo

      SinkInfo getSinkInfo(soot.jimple.Stmt sCallSite, InfoflowManager manager, AccessPath ap)
      Checks if the given access path at this statement will leak.
      Parameters:
      sCallSite - The call site to check
      manager - The manager object for interacting with the solver
      ap - The access path to check. Pass null to check whether the given statement can be a sink for any given access path.
      Returns:
      A SinkInfo object containing additional information if this call is a sink, otherwise null