Package soot.jimple.infoflow.util
Class DebugFlowFunctionTaintPropagationHandler
java.lang.Object
soot.jimple.infoflow.util.DebugFlowFunctionTaintPropagationHandler
- All Implemented Interfaces:
TaintPropagationHandler
public class DebugFlowFunctionTaintPropagationHandler
extends Object
implements TaintPropagationHandler
Prints all propagations to stdout. Useful to debug small test cases.
- Author:
- Tim Lange
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface soot.jimple.infoflow.handlers.TaintPropagationHandler
TaintPropagationHandler.FlowFunctionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidnotifyFlowIn(soot.Unit stmt, Abstraction taint, InfoflowManager manager, TaintPropagationHandler.FlowFunctionType type) Handler function that is invoked when a taint is proagated in the data flow enginenotifyFlowOut(soot.Unit stmt, Abstraction d1, Abstraction incoming, Set<Abstraction> outgoing, InfoflowManager manager, TaintPropagationHandler.FlowFunctionType type) Handler function that is invoked when a new taint is generated in the data flow engine
-
Constructor Details
-
DebugFlowFunctionTaintPropagationHandler
public DebugFlowFunctionTaintPropagationHandler() -
DebugFlowFunctionTaintPropagationHandler
public DebugFlowFunctionTaintPropagationHandler(DebugFlowFunctionTaintPropagationHandler.MethodFilter filter) -
DebugFlowFunctionTaintPropagationHandler
public DebugFlowFunctionTaintPropagationHandler(String prefix, DebugFlowFunctionTaintPropagationHandler.MethodFilter filter)
-
-
Method Details
-
notifyFlowIn
public void notifyFlowIn(soot.Unit stmt, Abstraction taint, InfoflowManager manager, TaintPropagationHandler.FlowFunctionType type) Description copied from interface:TaintPropagationHandlerHandler function that is invoked when a taint is proagated in the data flow engine- Specified by:
notifyFlowInin interfaceTaintPropagationHandler- Parameters:
stmt- The statement over which the taint is propagatedtaint- The taint being propagatedmanager- The manager object that gives access to the data flow enginetype- The type of data flow edge being processed
-
notifyFlowOut
public Set<Abstraction> notifyFlowOut(soot.Unit stmt, Abstraction d1, Abstraction incoming, Set<Abstraction> outgoing, InfoflowManager manager, TaintPropagationHandler.FlowFunctionType type) Description copied from interface:TaintPropagationHandlerHandler function that is invoked when a new taint is generated in the data flow engine- Specified by:
notifyFlowOutin interfaceTaintPropagationHandler- Parameters:
stmt- The statement over which the taint is propagatedd1- The abstraction at the beginning of the current methodincoming- The original abstraction from which the outgoing ones were computedoutgoing- The set of taints being propagatedmanager- The manager object that gives access to the data flow enginetype- The type of data flow edge being processed- Returns:
- The new abstractions to be propagated on. If you do not want to change the normal propagation behavior, just return the value of the "taints" parameter as-is.
-