mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Python: model that finditer returns iterable of re.Match objects
This commit is contained in:
@@ -42,8 +42,8 @@ ensure_tainted(
|
||||
list(re.finditer(pat, ts))[0].string, # $ tainted
|
||||
[m.string for m in re.finditer(pat, ts)], # $ tainted
|
||||
|
||||
list(re.finditer(pat, ts))[0].groups()[0], # $ MISSING: tainted
|
||||
[m.groups()[0] for m in re.finditer(pat, ts)], # $ MISSING: tainted
|
||||
list(re.finditer(pat, ts))[0].groups()[0], # $ MISSING: tainted // this requires list content in type tracking
|
||||
[m.groups()[0] for m in re.finditer(pat, ts)], # $ tainted
|
||||
)
|
||||
ensure_not_tainted(
|
||||
safe_match.expand("Hello \1"),
|
||||
|
||||
Reference in New Issue
Block a user