Skip to content

Commit 61c551f

Browse files
committed
Python: extra tests for comprehension
1 parent 862f752 commit 61c551f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/ql/test/library-tests/frameworks/tornado/taint_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def get(self, name = "World!", number="0", foo="foo"): # $ requestHandler route
6464
request.headers.get_list("header-name"), # $ tainted
6565
request.headers.get_all(), # $ tainted
6666
[(k, v) for (k, v) in request.headers.get_all()], # $ MISSING: tainted
67+
[(k, v) for (k, v) in request.headers.get_all()][0], # $ tainted
68+
list([(k, v) for (k, v) in request.headers.get_all()]), # $ MISSING: tainted
6769

6870
# Dict[str, http.cookies.Morsel]
6971
request.cookies, # $ tainted

0 commit comments

Comments
 (0)