Skip to content

Commit dede5bc

Browse files
committed
Track flow through tuple() with list with tainted elements
1 parent ad97b6d commit dede5bc

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

python/ql/lib/semmle/python/frameworks/Stdlib.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4277,9 +4277,7 @@ module StdlibPrivate {
42774277
preservesValue = true
42784278
)
42794279
or
4280-
// TODO: We need to also translate iterable content such as list element
4281-
// but we currently lack TupleElementAny
4282-
input = "Argument[0]" and
4280+
input = ["Argument[0]", "Argument[0].ListElement"] and
42834281
output = "ReturnValue" and
42844282
preservesValue = false
42854283
}

0 commit comments

Comments
 (0)