Package soot.jimple.infoflow.handlers
Class SequentialTaintPropagationHandler
java.lang.Object
soot.jimple.infoflow.handlers.SequentialTaintPropagationHandler
- All Implemented Interfaces:
TaintPropagationHandler
Taint propagation handler that processes a sequence of inner handlers. For
outputs, all generated abstractions are merged into a final abstraction set.
- Author:
- Steven Arzt
-
Nested Class Summary
Nested classes/interfaces inherited from interface soot.jimple.infoflow.handlers.TaintPropagationHandler
TaintPropagationHandler.FlowFunctionType -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new, empty sequence of taint propagation handlersCreates a sequence of taint propagation handlers from the given list -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllHandlers(TaintPropagationHandler[] handlers) Adds all of the given taint propagation handlersvoidaddHandler(TaintPropagationHandler handler) Adds a new handler to this sequence of handlersGets the inner handlers registered with this objectvoidnotifyFlowIn(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
-
SequentialTaintPropagationHandler
public SequentialTaintPropagationHandler()Creates a new, empty sequence of taint propagation handlers -
SequentialTaintPropagationHandler
Creates a sequence of taint propagation handlers from the given list- Parameters:
handlers- A list of taint propagation handlers to which all calls shall be relayed
-
-
Method Details
-
addHandler
Adds a new handler to this sequence of handlers- Parameters:
handler- The handler to add to the sequence
-
getHandlers
Gets the inner handlers registered with this object- Returns:
- The inner handlers registered with this object
-
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.
-
addAllHandlers
Adds all of the given taint propagation handlers- Parameters:
handlers- The taint propagation handlers to add
-