mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Python: Limit size of TupleElementContent
A more principled approach is possible here, but in the short term this will prevent an explosion. For reference, openstack/cinder has roughly 19000 `ForTarget`s and tuples of size up to 5300, and we were calculating the cartesian product of these.
This commit is contained in:
@@ -1517,7 +1517,7 @@ predicate forReadStep(CfgNode nodeFrom, Content c, Node nodeTo) {
|
||||
or
|
||||
c instanceof SetElementContent
|
||||
or
|
||||
c instanceof TupleElementContent
|
||||
c.(TupleElementContent).getIndex() <= 7
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user