mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Reduce scope of allowImplicitRead to avoid cartesian product.
This commit is contained in:
@@ -62,7 +62,12 @@ module EscapingCaptureFlowConfig implements DataFlow::ConfigSig {
|
||||
|
||||
predicate allowImplicitRead(DataFlow::Node node, DataFlow::ContentSet cs) {
|
||||
isSink(node) and
|
||||
exists(cs)
|
||||
(
|
||||
cs instanceof DataFlow::TupleElementContent or
|
||||
cs instanceof DataFlow::ListElementContent or
|
||||
cs instanceof DataFlow::SetElementContent or
|
||||
cs instanceof DataFlow::DictionaryElementAnyContent
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user