Class ImplicitFlowAliasStrategy

All Implemented Interfaces:
IAliasingStrategy

public class ImplicitFlowAliasStrategy extends AbstractBulkAliasStrategy
Aliasing strategy to be used for conditionally-called methods when analyzing implicit flows
Author:
Steven Arzt
  • Field Details

    • methodToAliases

      protected final com.google.common.cache.LoadingCache<soot.SootMethod,Map<AccessPath,Set<AccessPath>>> methodToAliases
  • Constructor Details

    • ImplicitFlowAliasStrategy

      public ImplicitFlowAliasStrategy(InfoflowManager manager)
  • Method Details

    • computeAliasTaints

      public void computeAliasTaints(Abstraction d1, soot.jimple.Stmt src, soot.Value targetValue, Set<Abstraction> taintSet, soot.SootMethod method, Abstraction newAbs)
      Description copied from interface: IAliasingStrategy
      Computes the taints for the aliases of a given tainted variable
      Parameters:
      d1 - The context in which the variable has been tainted
      src - The statement that tainted the variable
      targetValue - The target value which has been tainted
      taintSet - The set to which all generated alias taints shall be added
      method - The method containing src
      newAbs - The newly generated abstraction for the variable taint
    • injectCallingContext

      public void injectCallingContext(Abstraction abs, IInfoflowSolver fSolver, soot.SootMethod callee, soot.Unit callSite, Abstraction source, Abstraction d1)
      Description copied from interface: IAliasingStrategy
      Notifies the aliasing strategy that a method has been called in the taint analysis. This may be helpful for interprocedural alias analyses.
      Parameters:
      abs - The abstraction on the callee's start unit
      fSolver - The forward solver propagating the taints
      callee - The callee
      callSite - The call site
      source - The abstraction at the call site
      d1 - The abstraction at the caller method's entry point
    • isFlowSensitive

      public boolean isFlowSensitive()
      Description copied from interface: IAliasingStrategy
      Gets whether this aliasing strategy is flow sensitive
      Returns:
      True if the aliasing strategy is flow sensitive, otherwise false
    • requiresAnalysisOnReturn

      public boolean requiresAnalysisOnReturn()
      Description copied from interface: IAliasingStrategy
      Gets whether this algorithm requires the analysis to be triggered again when returning from a callee.
      Returns:
      True if the alias analysis must be triggered again when returning from a method, otherwise false
    • hasProcessedMethod

      public boolean hasProcessedMethod(soot.SootMethod method)
      Description copied from interface: IAliasingStrategy
      Checks whether this aliasing strategy has already computed aliases in the given method or not. Strategies that do not want to implement this method should always return true.
      Specified by:
      hasProcessedMethod in interface IAliasingStrategy
      Overrides:
      hasProcessedMethod in class AbstractAliasStrategy
      Parameters:
      method - The method to check
      Returns:
      True if this aliasing strategy has already computed aliases in the given method, otherwise false.
    • getSolver

      public IInfoflowSolver getSolver()
      Description copied from interface: IAliasingStrategy
      If this aliasing strategy uses an additional IFDS solver, it is returned by this method. If this IFDS problem does not have a an additional solver, null is returned.
      Returns:
      The additional IFDS solver used by this aliasing strategy if applicable, null otherwise
    • cleanup

      public void cleanup()
      Description copied from interface: IAliasingStrategy
      Performs a clean up, i.e., removes all generated data from memory