Python: move shared dataflow to experimental

This commit is contained in:
Rasmus Lerchedahl Petersen
2020-06-17 06:46:46 +02:00
parent 0f77403f0e
commit e192b66116
19 changed files with 4 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
ERROR: Could not resolve module DataFlow (local.ql:5,3-11)
ERROR: Could not resolve module DataFlow (local.ql:6,3-11)
ERROR: Could not resolve module DataFlow (local.ql:8,3-11)
ERROR: Could not resolve module semmle.code.python.dataflow.DataFlow (local.ql:2,8-44)

View File

@@ -0,0 +1,10 @@
import python
import semmle.code.python.dataflow.DataFlow
from
DataFlow::Node fromNode,
DataFlow::Node toNode
where
DataFlow::localFlowStep(fromNode, toNode)
select
fromNode, toNode

View File

@@ -0,0 +1,8 @@
a = 3
b = a
def f(x):
y = x + 2 # would expect flow to here from x
return y - 2 # would expect flow to here from y
c = f(a)