Skip to content

Commit bbd3c66

Browse files
committed
Swift: Update for CollectionContent.
1 parent 81b358a commit bbd3c66

File tree

3 files changed

+155
-155
lines changed

3 files changed

+155
-155
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module CleartextStorageDatabaseConfig implements DataFlow::ConfigSig {
4343
// flow out from array elements of at the sink,
4444
// for example in `database.allStatements(sql: "", arguments: [sensitive])`.
4545
isSink(node) and
46-
c.getAReadContent() instanceof DataFlow::Content::ArrayContent
46+
c.getAReadContent() instanceof DataFlow::Content::CollectionContent
4747
}
4848
}
4949

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module CommandInjectionConfig implements DataFlow::ConfigSig {
2727
predicate allowImplicitRead(DataFlow::Node node, DataFlow::ContentSet c) {
2828
// flow out from array elements of at the sink, for example in `task.arguments = [tainted]`.
2929
isSink(node) and
30-
c.getAReadContent() instanceof DataFlow::Content::ArrayContent
30+
c.getAReadContent() instanceof DataFlow::Content::CollectionContent
3131
}
3232
}
3333

0 commit comments

Comments
 (0)