Skip to content

Commit 4484574

Browse files
committed
Swift: Rename clashing CleartextStorage modules.
1 parent 10c222e commit 4484574

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

swift/ql/lib/codeql/swift/security/CleartextStorageDatabaseQuery.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import codeql.swift.security.CleartextStorageDatabaseExtensions
1313
* A taint configuration from sensitive information to expressions that are
1414
* transmitted over a network.
1515
*/
16-
module CleartextStorageConfig implements DataFlow::ConfigSig {
16+
module CleartextStorageDatabaseConfig implements DataFlow::ConfigSig {
1717
predicate isSource(DataFlow::Node node) { node.asExpr() instanceof SensitiveExpr }
1818

1919
predicate isSink(DataFlow::Node node) { node instanceof CleartextStorageDatabaseSink }
@@ -48,4 +48,4 @@ module CleartextStorageConfig implements DataFlow::ConfigSig {
4848
* Detect taint flow of sensitive information to expressions that are
4949
* transmitted over a network.
5050
*/
51-
module CleartextStorageFlow = TaintTracking::Global<CleartextStorageConfig>;
51+
module CleartextStorageDatabaseFlow = TaintTracking::Global<CleartextStorageDatabaseConfig>;

swift/ql/lib/codeql/swift/security/CleartextStoragePreferencesQuery.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import codeql.swift.security.CleartextStoragePreferencesExtensions
1313
* A taint configuration from sensitive information to expressions that are
1414
* stored as preferences.
1515
*/
16-
module CleartextStorageConfig implements DataFlow::ConfigSig {
16+
module CleartextStoragePreferencesConfig implements DataFlow::ConfigSig {
1717
predicate isSource(DataFlow::Node node) { node.asExpr() instanceof SensitiveExpr }
1818

1919
predicate isSink(DataFlow::Node node) { node instanceof CleartextStoragePreferencesSink }
@@ -36,4 +36,4 @@ module CleartextStorageConfig implements DataFlow::ConfigSig {
3636
* Detect taint flow of sensitive information to expressions that are stored
3737
* as preferences.
3838
*/
39-
module CleartextStorageFlow = TaintTracking::Global<CleartextStorageConfig>;
39+
module CleartextStoragePreferencesFlow = TaintTracking::Global<CleartextStoragePreferencesConfig>;

swift/ql/src/queries/Security/CWE-311/CleartextStorageDatabase.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import swift
1515
import codeql.swift.dataflow.DataFlow
1616
import codeql.swift.security.CleartextStorageDatabaseQuery
17-
import CleartextStorageFlow::PathGraph
17+
import CleartextStorageDatabaseFlow::PathGraph
1818

1919
/**
2020
* Gets a prettier node to use in the results.
@@ -27,10 +27,10 @@ DataFlow::Node cleanupNode(DataFlow::Node n) {
2727
}
2828

2929
from
30-
CleartextStorageFlow::PathNode sourceNode, CleartextStorageFlow::PathNode sinkNode,
30+
CleartextStorageDatabaseFlow::PathNode sourceNode, CleartextStorageDatabaseFlow::PathNode sinkNode,
3131
DataFlow::Node cleanSink
3232
where
33-
CleartextStorageFlow::flowPath(sourceNode, sinkNode) and
33+
CleartextStorageDatabaseFlow::flowPath(sourceNode, sinkNode) and
3434
cleanSink = cleanupNode(sinkNode.getNode())
3535
select cleanSink, sourceNode, sinkNode,
3636
"This operation stores '" + cleanSink.toString() +

swift/ql/src/queries/Security/CWE-312/CleartextStoragePreferences.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import swift
1414
import codeql.swift.dataflow.DataFlow
1515
import codeql.swift.security.CleartextStoragePreferencesQuery
16-
import CleartextStorageFlow::PathGraph
16+
import CleartextStoragePreferencesFlow::PathGraph
1717

1818
/**
1919
* Gets a prettier node to use in the results.
@@ -26,10 +26,10 @@ DataFlow::Node cleanupNode(DataFlow::Node n) {
2626
}
2727

2828
from
29-
CleartextStorageFlow::PathNode sourceNode, CleartextStorageFlow::PathNode sinkNode,
29+
CleartextStoragePreferencesFlow::PathNode sourceNode, CleartextStoragePreferencesFlow::PathNode sinkNode,
3030
DataFlow::Node cleanSink
3131
where
32-
CleartextStorageFlow::flowPath(sourceNode, sinkNode) and
32+
CleartextStoragePreferencesFlow::flowPath(sourceNode, sinkNode) and
3333
cleanSink = cleanupNode(sinkNode.getNode())
3434
select cleanSink, sourceNode, sinkNode,
3535
"This operation stores '" + cleanSink.toString() + "' in " +

0 commit comments

Comments
 (0)