Skip to content

Commit c8cf803

Browse files
committed
1 parent 9bb85ce commit c8cf803

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ module CleartextStoragePreferencesConfig implements DataFlow::ConfigSig {
3030
// make sources barriers so that we only report the closest instance
3131
isSource(node)
3232
}
33+
34+
predicate observeDiffInformedIncrementalMode() { any() }
35+
36+
Location getASelectedSinkLocation(DataFlow::Node sink) {
37+
exists(DataFlow::Node cleanSink | result = cleanSink.getLocation() |
38+
cleanSink = sink.(DataFlow::PostUpdateNode).getPreUpdateNode()
39+
or
40+
not sink instanceof DataFlow::PostUpdateNode and
41+
cleanSink = sink
42+
)
43+
}
3344
}
3445

3546
/**

0 commit comments

Comments
 (0)