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 6e07d65 commit a7252efCopy full SHA for a7252ef
swift/ql/lib/codeql/swift/security/CleartextStoragePreferencesQuery.qll
@@ -34,12 +34,9 @@ module CleartextStoragePreferencesConfig implements DataFlow::ConfigSig {
34
predicate observeDiffInformedIncrementalMode() { any() }
35
36
Location getASelectedSinkLocation(DataFlow::Node sink) {
37
- exists(DataFlow::Node cleanSink | result = cleanSink.getLocation() |
38
- cleanSink = sink.(DataFlow::PostUpdateNode).getPreUpdateNode()
39
- or
40
- not sink instanceof DataFlow::PostUpdateNode and
41
- cleanSink = sink
42
- )
+ result = sink.(CleartextStoragePreferencesSink).getLocation()
+ or
+ result = sink.(DataFlow::PostUpdateNode).getPreUpdateNode().getLocation()
43
}
44
45
0 commit comments