public class NullAliasStrategy extends Object implements IAliasingStrategy
| Constructor and Description |
|---|
NullAliasStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Performs a clean up, i.e., removes all generated data from memory
|
void |
computeAliasTaints(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 variable
|
IInfoflowSolver |
getSolver()
If this aliasing strategy uses an additional IFDS solver, it is returned
by this method.
|
boolean |
hasProcessedMethod(soot.SootMethod method)
Checks whether this aliasing strategy has already computed aliases in the
given method or not.
|
void |
injectCallingContext(Abstraction abs,
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.
|
boolean |
isFlowSensitive()
Gets whether this aliasing strategy is flow sensitive
|
boolean |
isInteractive()
Gets whether this aliasing strategy is interactive, i.e.
|
boolean |
isLazyAnalysis()
Gets whether this analysis is lazy, i.e., needs all taints to be
propagated into all methods, even if the respective access path is not
even visible inside the callee (but an alias may be visible).
|
boolean |
mayAlias(AccessPath ap1,
AccessPath ap2)
Gets whether the two given access path may alias
|
boolean |
requiresAnalysisOnReturn()
Gets whether this algorithm requires the analysis to be triggered again
when returning from a callee.
|
public void computeAliasTaints(Abstraction d1, soot.jimple.Stmt src, soot.Value targetValue, Set<Abstraction> taintSet, soot.SootMethod method, Abstraction newAbs)
IAliasingStrategycomputeAliasTaints in interface IAliasingStrategyd1 - 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 taintpublic boolean isInteractive()
IAliasingStrategyisInteractive in interface IAliasingStrategypublic boolean mayAlias(AccessPath ap1, AccessPath ap2)
IAliasingStrategymayAlias in interface IAliasingStrategyap1 - The first access pathap2 - The second access pathpublic void injectCallingContext(Abstraction abs, IInfoflowSolver fSolver, soot.SootMethod callee, soot.Unit callSite, Abstraction source, Abstraction d1)
IAliasingStrategyinjectCallingContext in interface IAliasingStrategyabs - 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 pointpublic boolean isFlowSensitive()
IAliasingStrategyisFlowSensitive in interface IAliasingStrategypublic boolean requiresAnalysisOnReturn()
IAliasingStrategyrequiresAnalysisOnReturn in interface IAliasingStrategypublic boolean hasProcessedMethod(soot.SootMethod method)
IAliasingStrategyhasProcessedMethod in interface IAliasingStrategymethod - The method to checkpublic boolean isLazyAnalysis()
IAliasingStrategyisLazyAnalysis in interface IAliasingStrategypublic IInfoflowSolver getSolver()
IAliasingStrategygetSolver in interface IAliasingStrategypublic void cleanup()
IAliasingStrategycleanup in interface IAliasingStrategyCopyright © 2021 Fraunhofer SIT. All rights reserved.