Package soot.jimple.infoflow.river
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 TypeMethodDescriptionbooleanisConditionalSink(soot.jimple.Stmt stmt, soot.SootClass baseClass) Checks whether stmt is a conditional sink and needs a secondary flow.booleanisSecondarySink(soot.jimple.Stmt stmt) Checks if a sink is reached in the secondary flowvoidregisterSecondarySink(soot.jimple.Stmt stmt) Register a secondary sink at runtime.voidregisterSecondarySink(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 StatementbaseClass- 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
-