Skip to content

Commit e2d3fa7

Browse files
committed
Python: Add list-comprehension taint test
1 parent f5ae5a5 commit e2d3fa7

File tree

1 file changed

+2
-0
lines changed
  • python/ql/test/experimental/dataflow/tainttracking/defaultAdditionalTaintStep

1 file changed

+2
-0
lines changed

python/ql/test/experimental/dataflow/tainttracking/defaultAdditionalTaintStep/test_collections.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ def test_access(x, y, z):
5252
reversed(tainted_list), # $ tainted
5353
iter(tainted_list), # $ tainted
5454
next(iter(tainted_list)), # $ tainted
55+
[i for i in tainted_list], # $ MISSING: tainted
56+
[tainted_list for _i in [1,2,3]], # $ MISSING: tainted
5557
)
5658

5759
a, b, c = tainted_list[0:3]

0 commit comments

Comments
 (0)