mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: dataflow regression tests: remove taint tracking tests
they will be reintroduced in an other PR
This commit is contained in:
@@ -212,22 +212,3 @@ def flow_in_generator():
|
||||
def flow_from_generator():
|
||||
for x in flow_in_generator():
|
||||
SINK(x) # Flow not found
|
||||
|
||||
def const_eq_clears_taint():
|
||||
tainted = SOURCE
|
||||
if tainted == "safe":
|
||||
SINK(tainted) # safe # FP
|
||||
SINK(tainted) # unsafe
|
||||
|
||||
def const_eq_clears_taint2():
|
||||
tainted = SOURCE
|
||||
if tainted != "safe":
|
||||
return
|
||||
SINK(tainted) # safe # FP
|
||||
|
||||
def non_const_eq_preserves_taint(x):
|
||||
tainted = SOURCE
|
||||
if tainted == tainted:
|
||||
SINK(tainted) # unsafe
|
||||
if tainted == x:
|
||||
SINK(tainted) # unsafe
|
||||
|
||||
Reference in New Issue
Block a user