Class CollectionWrapperPropagationRule
java.lang.Object
soot.jimple.infoflow.problems.rules.AbstractTaintPropagationRule
soot.jimple.infoflow.problems.rules.forward.WrapperPropagationRule
soot.jimple.infoflow.collections.problems.rules.forward.CollectionWrapperPropagationRule
- All Implemented Interfaces:
ITaintPropagationRule
Rule that is specifically suited for Taint Wrappers with ICollectionsSupport
- Author:
- Tim Lange
-
Field Summary
Fields inherited from class soot.jimple.infoflow.problems.rules.AbstractTaintPropagationRule
manager, results, zeroValue -
Constructor Summary
ConstructorsConstructorDescriptionCollectionWrapperPropagationRule(InfoflowManager manager, Abstraction zeroValue, TaintPropagationResults results) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckAndPropagateAlias(Abstraction d1, soot.jimple.Stmt iStmt, Set<Abstraction> resWithAliases, Abstraction abs) Starts alias tracking for the results of a taint wrapper if necessaryprotected Set<Abstraction>computeWrapperTaints(Abstraction d1, soot.jimple.Stmt iStmt, Abstraction source, ByReferenceBoolean killSource) Computes the taints produced by a taint wrapper objectMethods inherited from class soot.jimple.infoflow.problems.rules.forward.WrapperPropagationRule
propagateCallFlow, propagateCallToReturnFlow, propagateNormalFlow, propagateReturnFlowMethods inherited from class soot.jimple.infoflow.problems.rules.AbstractTaintPropagationRule
getAliasing, getManager, getResults, getZeroValue
-
Constructor Details
-
CollectionWrapperPropagationRule
public CollectionWrapperPropagationRule(InfoflowManager manager, Abstraction zeroValue, TaintPropagationResults results)
-
-
Method Details
-
computeWrapperTaints
protected Set<Abstraction> computeWrapperTaints(Abstraction d1, soot.jimple.Stmt iStmt, Abstraction source, ByReferenceBoolean killSource) Computes the taints produced by a taint wrapper object- Overrides:
computeWrapperTaintsin classWrapperPropagationRule- Parameters:
d1- The context (abstraction at the method's start node)iStmt- The call statement the taint wrapper shall check for well- known methods that introduce black-box taint propagationsource- The taint source- Returns:
- The taints computed by the wrapper
-
checkAndPropagateAlias
protected void checkAndPropagateAlias(Abstraction d1, soot.jimple.Stmt iStmt, Set<Abstraction> resWithAliases, Abstraction abs) Starts alias tracking for the results of a taint wrapper if necessary- Overrides:
checkAndPropagateAliasin classWrapperPropagationRule- Parameters:
d1- The context in which the wrapped method was callediStmt- The call siteresWithAliases- The resulting taint abstractions generated by the wrapperabs- The original incoming taint abstraction
-