Constrain location overrides to actual sources/sinks

This commit is contained in:
Nora Dimitrijević
2025-10-16 14:19:05 +02:00
parent 96e1536769
commit a0975e7e19
13 changed files with 45 additions and 33 deletions

View File

@@ -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()
}
}

View File

@@ -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()
}
}