File tree Expand file tree Collapse file tree 4 files changed +29
-0
lines changed
python/ql/test/experimental/dataflow Expand file tree Collapse file tree 4 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1
1
uniqueEnclosingCallable
2
+ | module.py:1:1:1:9 | GSSA Variable dangerous | Node should have one enclosing callable but has 0. |
3
+ | module.py:1:13:1:18 | ControlFlowNode for SOURCE | Node should have one enclosing callable but has 0. |
4
+ | module.py:2:1:2:4 | GSSA Variable safe | Node should have one enclosing callable but has 0. |
5
+ | module.py:2:8:2:13 | ControlFlowNode for Str | Node should have one enclosing callable but has 0. |
6
+ | module.py:5:1:5:21 | ControlFlowNode for FunctionExpr | Node should have one enclosing callable but has 0. |
7
+ | module.py:5:5:5:18 | GSSA Variable dangerous_func | Node should have one enclosing callable but has 0. |
8
+ | module.py:10:1:10:5 | GSSA Variable safe2 | Node should have one enclosing callable but has 0. |
9
+ | module.py:10:9:10:14 | ControlFlowNode for Str | Node should have one enclosing callable but has 0. |
2
10
| test.py:0:0:0:0 | GSSA Variable __name__ | Node should have one enclosing callable but has 0. |
3
11
| test.py:0:0:0:0 | GSSA Variable __package__ | Node should have one enclosing callable but has 0. |
4
12
| test.py:0:0:0:0 | GSSA Variable const_eq_clears_taint | Node should have one enclosing callable but has 0. |
Original file line number Diff line number Diff line change
1
+ dangerous = SOURCE
2
+ safe = "safe"
3
+
4
+
5
+ def dangerous_func ():
6
+ return SOURCE
7
+
8
+
9
+ safe2 = SOURCE
10
+ safe2 = "safe"
Original file line number Diff line number Diff line change
1
+ | module.py:6:12:6:17 | ControlFlowNode for SOURCE | test.py:101:10:101:10 | ControlFlowNode for t |
1
2
| test.py:3:10:3:15 | ControlFlowNode for SOURCE | test.py:3:10:3:15 | ControlFlowNode for SOURCE |
2
3
| test.py:6:9:6:14 | ControlFlowNode for SOURCE | test.py:7:10:7:10 | ControlFlowNode for s |
3
4
| test.py:10:12:10:17 | ControlFlowNode for SOURCE | test.py:13:10:13:12 | ControlFlowNode for arg |
Original file line number Diff line number Diff line change
1
+ dangerous = SOURCE
2
+ safe = "safe"
3
+
4
+
5
+ def dangerous_func ():
6
+ return SOURCE
7
+
8
+
9
+ safe2 = SOURCE
10
+ safe2 = "safe"
You can’t perform that action at this time.
0 commit comments