Class JvmReturnTaintSink
- java.lang.Object
-
- proguard.analysis.cpa.domain.taint.TaintSink
-
- proguard.analysis.cpa.jvm.domain.taint.JvmTaintSink
-
- proguard.analysis.cpa.jvm.domain.taint.JvmReturnTaintSink
-
public class JvmReturnTaintSink extends JvmTaintSink
AJvmTaintSinktriggered if the return value of the specified method is tainted.
-
-
Field Summary
-
Fields inherited from class proguard.analysis.cpa.domain.taint.TaintSink
IS_VALID_FOR_SOURCE_DEFAULT, isValidForSource, signature
-
-
Constructor Summary
Constructors Constructor Description JvmReturnTaintSink(Signature signature)JvmReturnTaintSink(Signature signature, java.util.function.Predicate<TaintSource> isValidForSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.Set<JvmMemoryLocation>getMemoryLocations()The location of values returned by a method is the top of the stack.inthashCode()booleanmatchCfaEdge(JvmCfaEdge edge)Returns true on the return edge of the sink method.java.lang.StringtoString()-
Methods inherited from class proguard.analysis.cpa.jvm.domain.taint.JvmTaintSink
convertSinksToMemoryLocations
-
-
-
-
Constructor Detail
-
JvmReturnTaintSink
public JvmReturnTaintSink(Signature signature)
-
JvmReturnTaintSink
public JvmReturnTaintSink(Signature signature, java.util.function.Predicate<TaintSource> isValidForSource)
-
-
Method Detail
-
getMemoryLocations
public java.util.Set<JvmMemoryLocation> getMemoryLocations()
The location of values returned by a method is the top of the stack. Since in our convention just the top value is tainted for category 2 types just the top is enough.- Specified by:
getMemoryLocationsin classJvmTaintSink
-
matchCfaEdge
public boolean matchCfaEdge(JvmCfaEdge edge)
Returns true on the return edge of the sink method.- Specified by:
matchCfaEdgein classJvmTaintSink
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classJvmTaintSink
-
hashCode
public int hashCode()
- Overrides:
hashCodein classJvmTaintSink
-
-