Class JvmTaintSink

    • Constructor Detail

      • JvmTaintSink

        public JvmTaintSink​(Signature signature)
      • JvmTaintSink

        public JvmTaintSink​(Signature signature,
                            java.util.function.Predicate<TaintSource> isValidForSource)
    • Method Detail

      • getMemoryLocations

        public abstract java.util.Set<JvmMemoryLocation> getMemoryLocations()
        Returns memory locations which trigger this taint sink.
      • matchCfaEdge

        public abstract boolean matchCfaEdge​(JvmCfaEdge edge)
        Returns whether the sink matches a given CFA edge.
      • convertSinksToMemoryLocations

        public static java.util.Map<Signature,​java.util.Map<JvmTaintSink,​java.util.Set<JvmMemoryLocation>>> convertSinksToMemoryLocations​(java.util.Collection<? extends JvmTaintSink> taintSinks)
        Helper method taking a collection of sinks and converting it to a mapping that associates each sink with the memory locations which triggers it. For convenience the sinks are further grouped by their method signature.
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class TaintSink