Add a ContentSet for any tuple or dictionary element

This commit is contained in:
Owen Mansel-Chan
2026-05-28 16:48:23 +01:00
parent 812e8e6b34
commit df15a719cb
5 changed files with 11 additions and 9 deletions

View File

@@ -61,9 +61,7 @@ module EscapingCaptureFlowConfig implements DataFlow::ConfigSig {
predicate allowImplicitRead(DataFlow::Node node, DataFlow::ContentSet cs) {
isSink(node) and
(
cs.isAnyTupleElement()
or
cs.isAnyDictionaryElement()
cs.isAnyTupleOrDictionaryElement()
or
cs.getAStoreContent() instanceof DataFlow::ListElementContent
or