mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Swift/CleartextStoragePreferencesQuery
swift/ql/src/queries/Security/CWE-312/CleartextStoragePreferences.ql
This commit is contained in:
@@ -34,12 +34,9 @@ module CleartextStoragePreferencesConfig implements DataFlow::ConfigSig {
|
|||||||
predicate observeDiffInformedIncrementalMode() { any() }
|
predicate observeDiffInformedIncrementalMode() { any() }
|
||||||
|
|
||||||
Location getASelectedSinkLocation(DataFlow::Node sink) {
|
Location getASelectedSinkLocation(DataFlow::Node sink) {
|
||||||
exists(DataFlow::Node cleanSink | result = cleanSink.getLocation() |
|
result = sink.(CleartextStoragePreferencesSink).getLocation()
|
||||||
cleanSink = sink.(DataFlow::PostUpdateNode).getPreUpdateNode()
|
or
|
||||||
or
|
result = sink.(DataFlow::PostUpdateNode).getPreUpdateNode().getLocation()
|
||||||
not sink instanceof DataFlow::PostUpdateNode and
|
|
||||||
cleanSink = sink
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user