Skip to content

Commit 3ae1aad

Browse files
authored
Merge pull request github#2995 from tausbn/python-fix-nested-sequence-assign-cp
Approved by RasmusWL
2 parents 7891f86 + 2face94 commit 3ae1aad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/ql/src/semmle/python/Flow.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,10 @@ private AstNode assigned_value(Expr lhs) {
910910

911911
predicate nested_sequence_assign(Expr left_parent, Expr right_parent,
912912
Expr left_result, Expr right_result) {
913+
exists(Assign a |
914+
a.getATarget().getASubExpression*() = left_parent and
915+
a.getValue().getASubExpression*() = right_parent
916+
) and
913917
exists(int i, Expr left_elem, Expr right_elem
914918
|
915919
(

0 commit comments

Comments
 (0)