Skip to content

Commit 8224ef6

Browse files
committed
Java: Diff-informed InsecureTrustManager.ql
1 parent eac1a4c commit 8224ef6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

java/ql/lib/semmle/code/java/security/InsecureTrustManagerQuery.qll

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ module InsecureTrustManagerConfig implements DataFlow::ConfigSig {
1818
node.getType() instanceof Array and
1919
c instanceof DataFlow::ArrayContent
2020
}
21+
22+
predicate observeDiffInformedIncrementalMode() { any() }
23+
24+
Location getASelectedSourceLocation(DataFlow::Node source) {
25+
isSource(source) and
26+
(
27+
result = source.getLocation()
28+
or
29+
result = source.asExpr().(ClassInstanceExpr).getConstructedType().getLocation()
30+
)
31+
}
2132
}
2233

2334
module InsecureTrustManagerFlow = DataFlow::Global<InsecureTrustManagerConfig>;

0 commit comments

Comments
 (0)