Python: Improve taint steps in for & iterable unpacking

These were written way before the ones in DataFlowPrivate, but
apparently didn't cover quite as much :|
This commit is contained in:
Rasmus Wriedt Larsen
2021-07-22 11:36:22 +02:00
parent d3163d8a76
commit 6e9d9fcbbd
5 changed files with 8 additions and 31 deletions

View File

@@ -52,7 +52,7 @@ 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
[i for i in tainted_list], # $ tainted
[tainted_list for _i in [1,2,3]], # $ MISSING: tainted
)