Interface IConditionalFlowManager

All Known Implementing Classes:
BaseSourceSinkManager, ConditionalFlowSourceSinkManagerWrapper

public interface IConditionalFlowManager
A source sink manager that is able to manage sinks with conditions, i.e. the sink context.
Author:
Tim Lange
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isConditionalSink(soot.jimple.Stmt stmt, soot.SootClass baseClass)
    Checks whether stmt is a conditional sink and needs a secondary flow.
    boolean
    isSecondarySink(soot.jimple.Stmt stmt)
    Checks if a sink is reached in the secondary flow
    void
    registerSecondarySink(soot.jimple.Stmt stmt)
    Register a secondary sink at runtime.
    void
    registerSecondarySink(soot.SootMethod sm)
    Register a secondary sink at runtime.
  • Method Details

    • isSecondarySink

      boolean isSecondarySink(soot.jimple.Stmt stmt)
      Checks if a sink is reached in the secondary flow
      Parameters:
      stmt - Sink Statement
      Returns:
      true if stmt is a secondary sink
    • isConditionalSink

      boolean isConditionalSink(soot.jimple.Stmt stmt, soot.SootClass baseClass)
      Checks whether stmt is a conditional sink and needs a secondary flow. Ensures that the statement contains a InstanceInvokeExpr.
      Parameters:
      stmt - Sink Statement
      baseClass - Class of the tainted base
      Returns:
      true if stmt is a conditional sink
    • registerSecondarySink

      void registerSecondarySink(soot.jimple.Stmt stmt)
      Register a secondary sink at runtime.
      Parameters:
      stmt - Secondary sink statement
    • registerSecondarySink

      void registerSecondarySink(soot.SootMethod sm)
      Register a secondary sink at runtime.
      Parameters:
      sm - Secondary sink method