File tree Expand file tree Collapse file tree
python/ql/test/experimental/dataflow/tainttracking/customSanitizer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ test_taint
3232| test_logical.py:123 | ok | test_nesting_not_with_and_true | s |
3333| test_logical.py:126 | ok | test_nesting_not_with_and_true | s |
3434| test_logical.py:128 | ok | test_nesting_not_with_and_true | s |
35+ | test_logical.py:137 | fail | test_with_return | s |
3536isSanitizer
3637| TestTaintTrackingConfiguration | test.py:21:39:21:39 | ControlFlowNode for s |
3738| TestTaintTrackingConfiguration | test.py:50:10:50:29 | ControlFlowNode for emulated_escaping() |
Original file line number Diff line number Diff line change @@ -128,6 +128,15 @@ def test_nesting_not_with_and_true():
128128 ensure_not_tainted (s )
129129
130130
131+ def test_with_return ():
132+ s = TAINTED_STRING
133+
134+ if not is_safe (s ):
135+ return
136+
137+ ensure_not_tainted (s )
138+
139+
131140# Make tests runable
132141
133142test_basic ()
@@ -136,3 +145,4 @@ def test_nesting_not_with_and_true():
136145test_tricky ()
137146test_nesting_not ()
138147test_nesting_not_with_and_true ()
148+ test_with_return ()
You can’t perform that action at this time.
0 commit comments