Skip to content

Commit 9bb85ce

Browse files
committed
1 parent 6efe576 commit 9bb85ce

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ module CleartextStorageDatabaseConfig implements DataFlow::ConfigSig {
4848
node.asExpr().getType().getUnderlyingType() instanceof DictionaryType and
4949
c.getAReadContent().(DataFlow::Content::TupleContent).getIndex() = 1
5050
}
51+
52+
predicate observeDiffInformedIncrementalMode() { any() }
53+
54+
Location getASelectedSinkLocation(DataFlow::Node sink) {
55+
exists(DataFlow::Node cleanSink | result = cleanSink.getLocation() |
56+
cleanSink = sink.(DataFlow::PostUpdateNode).getPreUpdateNode()
57+
or
58+
not sink instanceof DataFlow::PostUpdateNode and
59+
cleanSink = sink
60+
)
61+
}
5162
}
5263

5364
/**

0 commit comments

Comments
 (0)