Skip to content

Commit aad51af

Browse files
committed
Python: use concrete iterable source
1 parent 8997799 commit aad51af

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

python/ql/test/experimental/dataflow/regression/dataflow.expected

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,3 @@
1717
| test.py:178:9:178:14 | ControlFlowNode for SOURCE | test.py:186:14:186:14 | ControlFlowNode for t |
1818
| test.py:195:9:195:14 | ControlFlowNode for SOURCE | test.py:197:14:197:14 | ControlFlowNode for t |
1919
| test.py:195:9:195:14 | ControlFlowNode for SOURCE | test.py:199:14:199:14 | ControlFlowNode for t |
20-
| test.py:217:15:217:20 | ControlFlowNode for SOURCE | test.py:219:14:219:20 | ControlFlowNode for tainted |
21-
| test.py:217:15:217:20 | ControlFlowNode for SOURCE | test.py:220:10:220:16 | ControlFlowNode for tainted |
22-
| test.py:223:15:223:20 | ControlFlowNode for SOURCE | test.py:226:10:226:16 | ControlFlowNode for tainted |
23-
| test.py:229:15:229:20 | ControlFlowNode for SOURCE | test.py:231:14:231:20 | ControlFlowNode for tainted |
24-
| test.py:229:15:229:20 | ControlFlowNode for SOURCE | test.py:233:14:233:20 | ControlFlowNode for tainted |

python/ql/test/experimental/dataflow/regression/test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,10 @@ def flow_through_type_test_if_no_class():
199199
SINK(t) # ..and here
200200

201201
def flow_in_iteration():
202-
t = ITERABLE_SOURCE # Seems to not be sunk anywhere
202+
t = [SOURCE]
203203
for i in t:
204-
SINK(i)
205-
SINK(i)
204+
SINK(i) # Flow not found
205+
SINK(i) # Flow not found
206206

207207
def flow_in_generator():
208208
seq = [SOURCE]

0 commit comments

Comments
 (0)