Skip to content

Commit 53f1d23

Browse files
committed
Python: Small refactor of TaintTrackingPrivate
Highlight why we need to import `DataFlowPrivate`
1 parent 3f5602c commit 53f1d23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/ql/src/semmle/python/dataflow/new/internal/TaintTrackingPrivate.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
private import python
22
private import semmle.python.dataflow.new.DataFlow
3-
private import semmle.python.dataflow.new.internal.DataFlowPrivate
3+
private import semmle.python.dataflow.new.internal.DataFlowPrivate as DataFlowPrivate
44
private import semmle.python.dataflow.new.internal.TaintTrackingPublic
55

66
/**
@@ -148,7 +148,7 @@ predicate stringManipulation(DataFlow::CfgNode nodeFrom, DataFlow::CfgNode nodeT
148148
predicate containerStep(DataFlow::CfgNode nodeFrom, DataFlow::Node nodeTo) {
149149
// construction by literal
150150
// TODO: Not limiting the content argument here feels like a BIG hack, but we currently get nothing for free :|
151-
storeStep(nodeFrom, _, nodeTo)
151+
DataFlowPrivate::storeStep(nodeFrom, _, nodeTo)
152152
or
153153
// constructor call
154154
exists(DataFlow::CallCfgNode call | call = nodeTo |

0 commit comments

Comments
 (0)