Skip to content

Commit 3d46129

Browse files
committed
Python: Remove intermediary steps from taint-test
These were leftovers from old way of propagating taint
1 parent 71c017f commit 3d46129

File tree

1 file changed

+0
-3
lines changed
  • python/ql/test/library-tests/frameworks/stdlib

1 file changed

+0
-3
lines changed

python/ql/test/library-tests/frameworks/stdlib/test_re.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,13 @@
3030
tainted_match[0], # $ tainted
3131
tainted_match["key"], # $ tainted
3232

33-
tainted_match.groups(), # $ MISSING: tainted
3433
tainted_match.groups()[0], # $ tainted
35-
tainted_match.groupdict(), # $ MISSING: tainted
3634
tainted_match.groupdict()["key"], # $ tainted
3735

3836
re.match(pat, ts).string, # $ tainted
3937
re.match(ts, "safe").re.pattern, # $ tainted
4038

4139
compiled_pat.match(ts).string, # $ tainted
42-
re.compile(ts).match("safe").re, # $ MISSING: tainted
4340
re.compile(ts).match("safe").re.pattern, # $ tainted
4441
)
4542
ensure_not_tainted(

0 commit comments

Comments
 (0)