Package soot.jimple.infoflow.solver.cfg
Interface IInfoflowCFG
- All Superinterfaces:
soot.jimple.toolkits.ide.icfg.BiDiInterproceduralCFG<soot.Unit,,soot.SootMethod> heros.InterproceduralCFG<soot.Unit,soot.SootMethod>
- All Known Implementing Classes:
BackwardsInfoflowCFG,InfoflowCFG
public interface IInfoflowCFG
extends soot.jimple.toolkits.ide.icfg.BiDiInterproceduralCFG<soot.Unit,soot.SootMethod>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAbstraction of a postdominator. -
Method Summary
Modifier and TypeMethodDescriptionList<soot.Unit>getAllDominators(soot.Unit u) Get all dominators of the given unit.List<soot.Unit>getConditionalBranchesInterprocedural(soot.Unit unit) Reconstructs the conditionals a taint could possibly reach.List<soot.Unit>getConditionalBranchIntraprocedural(soot.Unit callSite) Reconstructs if the unit is inside a conditional.getDominatorOf(soot.Unit u) Gets the dominator of the given unit.Collection<soot.SootMethod>getOrdinaryCalleesOfCallAt(soot.Unit u) Gets all ordinary callees of the call at call site u, i.e., those that are not \<clinit\> or a fake edge.getPostdominatorOf(soot.Unit u) Gets the postdominator of the given unit.booleanhasSideEffects(soot.SootMethod method) Checks whether the given method or any of its transitive callees has side effectsbooleanisExceptionalEdgeBetween(soot.Unit u1, soot.Unit u2) Gets whether the two given units are connected by an exceptional control flow edgebooleanisExecutorExecute(soot.jimple.InvokeExpr ie, soot.SootMethod dest) Checks whether the given call is a call to Executor.execute() or AccessController.doPrivileged() and whether the callee matches the expected method signaturebooleanisReflectiveCallSite(soot.jimple.InvokeExpr iexpr) Checks whether the given call site is a reflective method callbooleanisReflectiveCallSite(soot.Unit u) Checks whether the given call site is a reflective method callbooleanisStaticFieldRead(soot.SootMethod method, soot.SootField variable) Checks whether the given static field is read inside the given method or one of its transitive callees.booleanisStaticFieldUsed(soot.SootMethod method, soot.SootField variable) Checks whether the given static field is used (read or written) inside the given method or one of its transitive callees.booleanmethodReadsValue(soot.SootMethod m, soot.Value v) Checks whether the given method reads the given valuebooleanmethodWritesValue(soot.SootMethod m, soot.Value v) Checks whether the given method writes the given valuevoidnotifyMethodChanged(soot.SootMethod m) Re-initializes the mapping between statements and owning methods after a method has changed.voidnotifyNewBody(soot.Body b) Initializes the mapping between statements and owning body.voidpurge()Clears all caches and temporary data from memory.Methods inherited from interface soot.jimple.toolkits.ide.icfg.BiDiInterproceduralCFG
allNonCallEndNodes, getEndPointsOf, getOrCreateUnitGraph, getParameterRefs, getPredsOf, getPredsOfCallAt, isReachable, isReturnSiteMethods inherited from interface heros.InterproceduralCFG
allNonCallStartNodes, getCalleesOfCallAt, getCallersOf, getCallsFromWithin, getMethodOf, getReturnSitesOfCallAt, getStartPointsOf, getSuccsOf, isBranchTarget, isCallStmt, isExitStmt, isFallThroughSuccessor, isStartPoint
-
Method Details
-
getPostdominatorOf
Gets the postdominator of the given unit. If this unit is a conditional, the postdominator is the join point behind both branches of the conditional.- Parameters:
u- The unit for which to get the postdominator.- Returns:
- The postdominator of the given unit
-
getDominatorOf
Gets the dominator of the given unit. If this unit is a conditional, the dominator is the join point above both branches of the conditional.- Parameters:
u- The unit for which to get the postdominator.- Returns:
- The postdominator of the given unit
-
getAllDominators
Get all dominators of the given unit.- Parameters:
u- The unit for which tot get the dominators- Returns:
- The dominators of the given unit
-
getConditionalBranchIntraprocedural
Reconstructs if the unit is inside a conditional. Needed for implicit backwards on an unbalanced return into a method.- Parameters:
callSite- The unit to start the search at- Returns:
- The same-level conditional
-
getConditionalBranchesInterprocedural
Reconstructs the conditionals a taint could possibly reach. Needed for implicit backward flows to model sink calls inside a callee- Parameters:
unit- start unit, possibly a sink- Returns:
- List of units with the context appended
-
isStaticFieldRead
boolean isStaticFieldRead(soot.SootMethod method, soot.SootField variable) Checks whether the given static field is read inside the given method or one of its transitive callees.- Parameters:
method- The method to checkvariable- The static field to check- Returns:
- True if the given static field is read inside the given method, otherwise false
-
isStaticFieldUsed
boolean isStaticFieldUsed(soot.SootMethod method, soot.SootField variable) Checks whether the given static field is used (read or written) inside the given method or one of its transitive callees.- Parameters:
method- The method to checkvariable- The static field to check- Returns:
- True if the given static field is used inside the given method, otherwise false
-
hasSideEffects
boolean hasSideEffects(soot.SootMethod method) Checks whether the given method or any of its transitive callees has side effects- Parameters:
method- The method to check- Returns:
- True if the given method or one of its transitive callees has side effects, otherwise false
-
notifyMethodChanged
void notifyMethodChanged(soot.SootMethod m) Re-initializes the mapping between statements and owning methods after a method has changed.- Parameters:
m- The method for which to re-initialize the mapping
-
notifyNewBody
void notifyNewBody(soot.Body b) Initializes the mapping between statements and owning body.- Parameters:
b- The body for which to initialize the mapping
-
methodReadsValue
boolean methodReadsValue(soot.SootMethod m, soot.Value v) Checks whether the given method reads the given value- Parameters:
m- The method to checkv- The value to check- Returns:
- True if the given method reads the given value, otherwise false
-
methodWritesValue
boolean methodWritesValue(soot.SootMethod m, soot.Value v) Checks whether the given method writes the given value- Parameters:
m- The method to checkv- The value to check- Returns:
- True if the given method writes the given value, otherwise false
-
isExceptionalEdgeBetween
boolean isExceptionalEdgeBetween(soot.Unit u1, soot.Unit u2) Gets whether the two given units are connected by an exceptional control flow edge- Parameters:
u1- The first unitu2- The second unit- Returns:
- True if the two given units are directly connected by an exceptional control flow edge, otherwise false
-
getOrdinaryCalleesOfCallAt
Gets all ordinary callees of the call at call site u, i.e., those that are not \<clinit\> or a fake edge.- Parameters:
u- The call site- Returns:
- The set of ordinary callees of the given call site
-
isExecutorExecute
boolean isExecutorExecute(soot.jimple.InvokeExpr ie, soot.SootMethod dest) Checks whether the given call is a call to Executor.execute() or AccessController.doPrivileged() and whether the callee matches the expected method signature- Parameters:
ie- The invocation expression to checkdest- The callee of the given invocation expression- Returns:
- True if the given invocation expression and callee are a valid call to Executor.execute() or AccessController.doPrivileged()
-
isReflectiveCallSite
boolean isReflectiveCallSite(soot.Unit u) Checks whether the given call site is a reflective method call- Parameters:
u- The call site to check- Returns:
- True if the given call site contains a reflective method call, otherwise false
-
isReflectiveCallSite
boolean isReflectiveCallSite(soot.jimple.InvokeExpr iexpr) Checks whether the given call site is a reflective method call- Parameters:
iexpr- The call site to check- Returns:
- True if the given call site contains a reflective method call, otherwise false
-
purge
void purge()Clears all caches and temporary data from memory. This method has no effect on the functional behavior of the class.
-