mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Constrain location overrides to actual sources/sinks
This commit is contained in:
@@ -54,7 +54,11 @@ module CleartextStorageDatabaseConfig implements DataFlow::ConfigSig {
|
||||
Location getASelectedSinkLocation(DataFlow::Node sink) {
|
||||
result = sink.(CleartextStorageDatabaseSink).getLocation()
|
||||
or
|
||||
result = sink.(DataFlow::PostUpdateNode).getPreUpdateNode().getLocation()
|
||||
result =
|
||||
sink.(CleartextStorageDatabaseSink)
|
||||
.(DataFlow::PostUpdateNode)
|
||||
.getPreUpdateNode()
|
||||
.getLocation()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,11 @@ module CleartextStoragePreferencesConfig implements DataFlow::ConfigSig {
|
||||
Location getASelectedSinkLocation(DataFlow::Node sink) {
|
||||
result = sink.(CleartextStoragePreferencesSink).getLocation()
|
||||
or
|
||||
result = sink.(DataFlow::PostUpdateNode).getPreUpdateNode().getLocation()
|
||||
result =
|
||||
sink.(CleartextStoragePreferencesSink)
|
||||
.(DataFlow::PostUpdateNode)
|
||||
.getPreUpdateNode()
|
||||
.getLocation()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user