File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
swift/ql/lib/codeql/swift/security Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -40,16 +40,13 @@ module CleartextStorageDatabaseConfig implements DataFlow::ConfigSig {
40
40
c .getAReadContent ( ) .( DataFlow:: Content:: FieldContent ) .getField ( ) = cx .getAMember ( )
41
41
)
42
42
or
43
- // flow out from dictionary values at the sink (this is essential for some of the
44
- // SQLite.swift models)
43
+ // flow out from dictionary tuple values at the sink (this is essential
44
+ // for some of the SQLite.swift models).
45
45
isSink ( node ) and
46
46
node .asExpr ( ) .getType ( ) .getUnderlyingType ( ) instanceof DictionaryType and
47
- (
48
- c .getAReadContent ( ) instanceof DataFlow:: Content:: CollectionContent or
49
- c .getAReadContent ( ) .( DataFlow:: Content:: TupleContent ) .getIndex ( ) = 1
50
- )
47
+ c .getAReadContent ( ) .( DataFlow:: Content:: TupleContent ) .getIndex ( ) = 1
51
48
or
52
- // flow out from array elements of at the sink,
49
+ // flow out from array elements (and other collection content) at the sink,
53
50
// for example in `database.allStatements(sql: "", arguments: [sensitive])`.
54
51
isSink ( node ) and
55
52
c .getAReadContent ( ) instanceof DataFlow:: Content:: CollectionContent
You can’t perform that action at this time.
0 commit comments