Python: Add list-comprehension taint test

This commit is contained in:
Rasmus Wriedt Larsen
2021-07-22 10:51:15 +02:00
parent f5ae5a581b
commit e2d3fa7093

View File

@@ -52,6 +52,8 @@ def test_access(x, y, z):
reversed(tainted_list), # $ tainted
iter(tainted_list), # $ tainted
next(iter(tainted_list)), # $ tainted
[i for i in tainted_list], # $ MISSING: tainted
[tainted_list for _i in [1,2,3]], # $ MISSING: tainted
)
a, b, c = tainted_list[0:3]