Interface ISourceSinkManager
- All Known Subinterfaces:
IReversibleSourceSinkManager
- All Known Implementing Classes:
BaseSourceSinkManager,ConditionalFlowSourceSinkManagerWrapper,DefaultSourceSinkManager,EmptySourceSinkManager,MethodBasedSourceSinkManager
public interface ISourceSinkManager
the SourceSinkManager can tell if a statement contains a source or a sink
-
Method Summary
Modifier and TypeMethodDescriptiongetSinkInfo(soot.jimple.Stmt sCallSite, InfoflowManager manager, AccessPath ap) Checks if the given access path at this statement will leak.getSourceInfo(soot.jimple.Stmt sCallSite, InfoflowManager manager) Determines if a method called by the Stmt is a source method or not.voidInitialization method that is called after the Soot instance has been created and before the actual data flow tracking is started.
-
Method Details
-
initialize
void initialize()Initialization method that is called after the Soot instance has been created and before the actual data flow tracking is started. -
getSourceInfo
Determines if a method called by the Stmt is a source method or not. If so, additional information is returned- Parameters:
sCallSite- a Stmt which should include an invokeExrp calling a methodmanager- The manager object for interacting with the solver- Returns:
- A SourceInfo object containing additional information if this call is a source, otherwise null
-
getSinkInfo
Checks if the given access path at this statement will leak.- Parameters:
sCallSite- The call site to checkmanager- The manager object for interacting with the solverap- The access path to check. Pass null to check whether the given statement can be a sink for any given access path.- Returns:
- A SinkInfo object containing additional information if this call is a sink, otherwise null
-