Package soot.jimple.infoflow.aliasing
Class FlowSensitiveAliasStrategy
java.lang.Object
soot.jimple.infoflow.aliasing.AbstractAliasStrategy
soot.jimple.infoflow.aliasing.AbstractBulkAliasStrategy
soot.jimple.infoflow.aliasing.FlowSensitiveAliasStrategy
- All Implemented Interfaces:
IAliasingStrategy
A fully flow-sensitive aliasing strategy
- Author:
- Steven Arzt
-
Field Summary
Fields inherited from class soot.jimple.infoflow.aliasing.AbstractAliasStrategy
manager -
Constructor Summary
ConstructorsConstructorDescriptionFlowSensitiveAliasStrategy(InfoflowManager manager, IInfoflowSolver backwardsSolver) -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Performs a clean up, i.e., removes all generated data from memoryvoidcomputeAliasTaints(Abstraction d1, soot.jimple.Stmt src, soot.Value targetValue, Set<Abstraction> taintSet, soot.SootMethod method, Abstraction newAbs) Computes the taints for the aliases of a given tainted variableIf this aliasing strategy uses an additional IFDS solver, it is returned by this method.voidinjectCallingContext(Abstraction d3, IInfoflowSolver fSolver, soot.SootMethod callee, soot.Unit callSite, Abstraction source, Abstraction d1) Notifies the aliasing strategy that a method has been called in the taint analysis.booleanGets whether this aliasing strategy is flow sensitivebooleanGets whether this algorithm requires the analysis to be triggered again when returning from a callee.Methods inherited from class soot.jimple.infoflow.aliasing.AbstractBulkAliasStrategy
isInteractive, isLazyAnalysis, mayAliasMethods inherited from class soot.jimple.infoflow.aliasing.AbstractAliasStrategy
hasProcessedMethod
-
Constructor Details
-
FlowSensitiveAliasStrategy
-
-
Method Details
-
computeAliasTaints
public void computeAliasTaints(Abstraction d1, soot.jimple.Stmt src, soot.Value targetValue, Set<Abstraction> taintSet, soot.SootMethod method, Abstraction newAbs) Description copied from interface:IAliasingStrategyComputes the taints for the aliases of a given tainted variable- Parameters:
d1- The context in which the variable has been taintedsrc- The statement that tainted the variabletargetValue- The target value which has been taintedtaintSet- The set to which all generated alias taints shall be addedmethod- The method containing srcnewAbs- The newly generated abstraction for the variable taint
-
injectCallingContext
public void injectCallingContext(Abstraction d3, IInfoflowSolver fSolver, soot.SootMethod callee, soot.Unit callSite, Abstraction source, Abstraction d1) Description copied from interface:IAliasingStrategyNotifies the aliasing strategy that a method has been called in the taint analysis. This may be helpful for interprocedural alias analyses.- Parameters:
d3- The abstraction on the callee's start unitfSolver- The forward solver propagating the taintscallee- The calleecallSite- The call sitesource- The abstraction at the call sited1- The abstraction at the caller method's entry point
-
isFlowSensitive
public boolean isFlowSensitive()Description copied from interface:IAliasingStrategyGets whether this aliasing strategy is flow sensitive- Returns:
- True if the aliasing strategy is flow sensitive, otherwise false
-
requiresAnalysisOnReturn
public boolean requiresAnalysisOnReturn()Description copied from interface:IAliasingStrategyGets whether this algorithm requires the analysis to be triggered again when returning from a callee.- Returns:
- True if the alias analysis must be triggered again when returning from a method, otherwise false
-
getSolver
Description copied from interface:IAliasingStrategyIf this aliasing strategy uses an additional IFDS solver, it is returned by this method. If this IFDS problem does not have a an additional solver, null is returned.- Returns:
- The additional IFDS solver used by this aliasing strategy if applicable, null otherwise
-
cleanup
public void cleanup()Description copied from interface:IAliasingStrategyPerforms a clean up, i.e., removes all generated data from memory
-