File tree Expand file tree Collapse file tree 4 files changed +4910
-1
lines changed Expand file tree Collapse file tree 4 files changed +4910
-1
lines changed Original file line number Diff line number Diff line change 29
29
" csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowImplForContentDataFlow.qll" ,
30
30
" go/ql/lib/semmle/go/dataflow/internal/DataFlowImpl.qll" ,
31
31
" go/ql/lib/semmle/go/dataflow/internal/DataFlowImpl2.qll" ,
32
+ " go/ql/lib/semmle/go/dataflow/internal/DataFlowImplForStringsNewReplacer.qll" ,
32
33
" python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImpl.qll" ,
33
34
" python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImpl2.qll" ,
34
35
" python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImpl3.qll" ,
Original file line number Diff line number Diff line change 3
3
*/
4
4
5
5
import go
6
+ import semmle.go.dataflow.DataFlowForStringsNewReplacer
6
7
7
8
/** Provides predicates and classes for working with string operations. */
8
9
module StringOps {
@@ -227,7 +228,7 @@ module StringOps {
227
228
* the receiver of a call to `strings.Replacer.Replace` or
228
229
* `strings.Replacer.WriteString`.
229
230
*/
230
- private class StringsNewReplacerConfiguration extends DataFlow2 :: Configuration {
231
+ private class StringsNewReplacerConfiguration extends DataFlowForStringsNewReplacer :: Configuration {
231
232
StringsNewReplacerConfiguration ( ) { this = "StringsNewReplacerConfiguration" }
232
233
233
234
override predicate isSource ( DataFlow:: Node source ) {
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Provides a library for local (intra-procedural) and global (inter-procedural)
3
+ * data flow analysis: deciding whether data can flow from a _source_ to a
4
+ * _sink_.
5
+ *
6
+ * Unless configured otherwise, _flow_ means that the exact value of
7
+ * the source may reach the sink. We do not track flow across pointer
8
+ * dereferences or array indexing. To track these types of flow, where the
9
+ * exact value may not be preserved, import
10
+ * `semmle.code.go.dataflow.TaintTracking`.
11
+ *
12
+ * To use global (interprocedural) data flow, extend the class
13
+ * `DataFlow::Configuration` as documented on that class. To use local
14
+ * (intraprocedural) data flow, invoke `DataFlow::localFlow` or
15
+ * `DataFlow::LocalFlowStep` with arguments of type `DataFlow::Node`.
16
+ */
17
+
18
+ import go
19
+
20
+ /**
21
+ * Provides a library for local (intra-procedural) and global (inter-procedural)
22
+ * data flow analysis.
23
+ */
24
+ module DataFlowForStringsNewReplacer {
25
+ import semmle.go.dataflow.internal.DataFlowImplForStringsNewReplacer
26
+ import Properties
27
+ }
You can’t perform that action at this time.
0 commit comments