|
13 | 13 | re.fullmatch(pat, ts), # $ MISSING: tainted |
14 | 14 |
|
15 | 15 | # other functions not returning Match objects |
16 | | - re.split(pat, ts), # $ MISSING: tainted |
17 | | - re.split(pat, ts)[0], # $ MISSING: tainted |
| 16 | + re.split(pat, ts), # $ tainted |
| 17 | + re.split(pat, ts)[0], # $ tainted |
18 | 18 |
|
19 | | - re.findall(pat, ts), # $ MISSING: tainted |
| 19 | + re.findall(pat, ts), # $ tainted |
| 20 | + re.findall(pat, ts)[0], # $ tainted |
20 | 21 |
|
21 | 22 | re.finditer(pat, ts), # $ MISSING: tainted |
22 | | - [x for x in re.finditer(pat, ts)], # $ MISSING: tainted |
| 23 | + [x for x in re.finditer(pat, ts)], # $ tainted |
23 | 24 |
|
24 | | - re.sub(pat, repl="safe", string=ts), # $ MISSING: tainted |
25 | | - re.sub(pat, repl=lambda m: ..., string=ts), # $ MISSING: tainted |
26 | | - re.sub(pat, repl=ts, string="safe"), # $ MISSING: tainted |
27 | | - re.sub(pat, repl=lambda m: ts, string="safe"), # $ MISSING: tainted |
| 25 | + re.sub(pat, repl="safe", string=ts), # $ tainted |
| 26 | + re.sub(pat, repl=lambda m: ..., string=ts), # $ tainted |
| 27 | + re.sub(pat, repl=ts, string="safe"), # $ tainted |
| 28 | + re.sub(pat, repl=lambda m: ts, string="safe"), # $ tainted |
28 | 29 |
|
29 | 30 | re.subn(pat, repl="safe", string=ts), # $ MISSING: tainted |
30 | | - re.subn(pat, repl="safe", string=ts)[0], # $ MISSING: tainted // the string |
| 31 | + re.subn(pat, repl="safe", string=ts)[0], # $ tainted // the string |
31 | 32 |
|
32 | 33 | # same for compiled patterns |
33 | 34 | compiled_pat.search(ts), # $ MISSING: tainted |
34 | 35 | compiled_pat.match(ts), # $ MISSING: tainted |
35 | 36 | compiled_pat.fullmatch(ts), # $ MISSING: tainted |
36 | 37 |
|
37 | | - compiled_pat.split(ts), # $ MISSING: tainted |
38 | | - compiled_pat.split(ts)[0], # $ MISSING: tainted |
| 38 | + compiled_pat.split(ts), # $ tainted |
| 39 | + compiled_pat.split(ts)[0], # $ tainted |
39 | 40 |
|
40 | 41 | # ... |
41 | 42 |
|
|
0 commit comments