Python: dataflow regression tests: remove taint tracking tests

they will be reintroduced in an other PR
This commit is contained in:
Rasmus Wriedt Larsen
2020-09-02 13:51:00 +02:00
parent 552637a446
commit bf3a266f58

View File

@@ -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