Skip to content

Commit 3e3e856

Browse files
committed
Swift: InsecureTLSQuery
1 parent 057e266 commit 3e3e856

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

swift/ql/lib/codeql/swift/security/InsecureTLSQuery.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ module InsecureTlsConfig implements DataFlow::ConfigSig {
2222
any(InsecureTlsExtensionsAdditionalFlowStep s).step(nodeFrom, nodeTo)
2323
}
2424

25-
predicate observeDiffInformedIncrementalMode() { any() }
26-
27-
Location getASelectedSourceLocation(DataFlow::Node source) { none() }
25+
predicate observeDiffInformedIncrementalMode() {
26+
none() // query selects some Swift nodes (e.g. "[post] self") that have location file://:0:0:0:0, which always fall outside the diff range.
27+
}
2828
}
2929

3030
module InsecureTlsFlow = TaintTracking::Global<InsecureTlsConfig>;

0 commit comments

Comments
 (0)