Java: isPublic and fromSource check as this is already ensured by the TargetApi characteristic predicate.

This commit is contained in:
Michael Nebel
2022-03-18 09:57:49 +01:00
parent f42ed1e3ad
commit f00837578b

View File

@@ -18,9 +18,7 @@ class FromSourceConfiguration extends TaintTracking::Configuration {
override predicate isSink(DataFlow::Node sink) {
exists(TargetApi c |
sink instanceof ReturnNodeExt and
sink.getEnclosingCallable() = c and
c.isPublic() and
c.fromSource()
sink.getEnclosingCallable() = c
)
}