We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a362113 commit da192f6Copy full SHA for da192f6
swift/ql/lib/codeql/swift/security/CleartextStorageDatabaseQuery.qll
@@ -52,12 +52,9 @@ module CleartextStorageDatabaseConfig implements DataFlow::ConfigSig {
52
predicate observeDiffInformedIncrementalMode() { any() }
53
54
Location getASelectedSinkLocation(DataFlow::Node sink) {
55
- exists(DataFlow::Node cleanSink | result = cleanSink.getLocation() |
56
- cleanSink = sink.(DataFlow::PostUpdateNode).getPreUpdateNode()
57
- or
58
- not sink instanceof DataFlow::PostUpdateNode and
59
- cleanSink = sink
60
- )
+ result = sink.(CleartextStorageDatabaseSink).getLocation()
+ or
+ result = sink.(DataFlow::PostUpdateNode).getPreUpdateNode().getLocation()
61
}
62
63
0 commit comments