Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f008375

Browse files
committed
Java: isPublic and fromSource check as this is already ensured by the TargetApi characteristic predicate.
1 parent f42ed1e commit f008375

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

java/ql/src/utils/model-generator/CaptureSourceModels.ql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ class FromSourceConfiguration extends TaintTracking::Configuration {
1818
override predicate isSink(DataFlow::Node sink) {
1919
exists(TargetApi c |
2020
sink instanceof ReturnNodeExt and
21-
sink.getEnclosingCallable() = c and
22-
c.isPublic() and
23-
c.fromSource()
21+
sink.getEnclosingCallable() = c
2422
)
2523
}
2624

0 commit comments

Comments
 (0)