File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
docs/codeql/codeql-language-guides Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -97,8 +97,9 @@ Taint tracking
97
97
For configuration classes extending ``TaintTracking::Configuration ``, the migration is similar but with a few differences:
98
98
99
99
- The ``TaintTracking::Global `` module should be used instead of ``DataFlow::Global ``.
100
- - The ``isSanitizer `` predicate should be renamed to ``isBarrier ``.
101
- - The ``isAdditionalTaintStep `` predicate should be renamed to ``isAdditionalFlowStep ``.
100
+ - Some predicates originating from ``TaintTracking::Configuration `` should be renamed to match the ``DataFlow::ConfigSig `` interface:
101
+ - ``isSanitizer `` should be renamed to ``isBarrier ``.
102
+ - ``isAdditionalTaintStep `` should be renamed to ``isAdditionalFlowStep ``.
102
103
103
104
Note that there is no such thing as ``TaintTracking::ConfigSig ``. The ``DataFlow::ConfigSig `` interface is used for both data flow and taint tracking.
104
105
@@ -107,6 +108,8 @@ For example:
107
108
.. code-block :: ql
108
109
109
110
class MyConfig extends TaintTracking::Configuration {
111
+ MyConfig() { this = "MyConfig" }
112
+
110
113
predicate isSanitizer(DataFlow::Node node) { ... }
111
114
predicate isAdditionalTaintStep(DataFlow::Node node1, DataFlow::Node node2) { ... }
112
115
...
You can’t perform that action at this time.
0 commit comments