File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
lib/semmle/python/dataflow/new/internal
test/experimental/dataflow/summaries-checks Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -588,6 +588,11 @@ newtype TContent =
588
588
or
589
589
// Arguments can overflow and end up in the starred parameter tuple.
590
590
exists ( any ( CallNode cn ) .getArg ( index ) )
591
+ or
592
+ // since flow summaries might use tuples, we ensure that we at least have valid
593
+ // TTupleElementContent for the 0..7 (7 was picked to match `small_tuple` in
594
+ // data-flow-private)
595
+ index in [ 0 .. 7 ]
591
596
} or
592
597
/** An element of a dictionary under a specific key. */
593
598
TDictionaryElementContent ( string key ) {
Original file line number Diff line number Diff line change 1
- | compiled re.subn | ReturnValue.TupleElement[0] | TupleElement[0] |
2
- | re.subn | ReturnValue.TupleElement[0] | TupleElement[0] |
You can’t perform that action at this time.
0 commit comments