Class MethodBasedSourceSinkManager
java.lang.Object
soot.jimple.infoflow.sourcesSinks.manager.MethodBasedSourceSinkManager
- All Implemented Interfaces:
ISourceSinkManager
- Direct Known Subclasses:
EmptySourceSinkManager
Abstracts from the very generic statement-based SourceSinkManager so that
users can conveniently work on the called methods instead of having to
analyze the call statement every time
- Author:
- Steven Arzt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSinkInfo(soot.jimple.Stmt sCallSite, InfoflowManager manager, AccessPath ap) Checks if the given access path at this statement will leak.abstract SinkInfogetSinkMethodInfo(soot.SootMethod method) getSourceInfo(soot.jimple.Stmt sCallSite, InfoflowManager manager) Determines if a method called by the Stmt is a source method or not.abstract SourceInfogetSourceMethodInfo(soot.SootMethod method) protected booleantypeIsString(soot.Type type) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface soot.jimple.infoflow.sourcesSinks.manager.ISourceSinkManager
initialize
-
Constructor Details
-
MethodBasedSourceSinkManager
public MethodBasedSourceSinkManager()
-
-
Method Details
-
getSourceMethodInfo
-
getSinkMethodInfo
-
getSourceInfo
Description copied from interface:ISourceSinkManagerDetermines if a method called by the Stmt is a source method or not. If so, additional information is returned- Specified by:
getSourceInfoin interfaceISourceSinkManager- 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
Description copied from interface:ISourceSinkManagerChecks if the given access path at this statement will leak.- Specified by:
getSinkInfoin interfaceISourceSinkManager- 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
-
typeIsString
protected boolean typeIsString(soot.Type type)
-