We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
re.Match
finditer
1 parent 6ffdf57 commit 073189eCopy full SHA for 073189e
python/ql/test/library-tests/frameworks/stdlib/test_re.py
@@ -38,6 +38,12 @@
38
39
compiled_pat.match(ts).string, # $ tainted
40
re.compile(ts).match("safe").re.pattern, # $ tainted
41
+
42
+ list(re.finditer(pat, ts))[0].string, # $ MISSING: tainted
43
+ [m.string for m in re.finditer(pat, ts)], # $ MISSING: tainted
44
45
+ list(re.finditer(pat, ts))[0].groups()[0], # $ MISSING: tainted
46
+ [m.groups()[0] for m in re.finditer(pat, ts)], # $ MISSING: tainted
47
)
48
ensure_not_tainted(
49
safe_match.expand("Hello \1"),
0 commit comments