File tree Expand file tree Collapse file tree 5 files changed +106
-424
lines changed
python/ql/lib/semmle/python Expand file tree Collapse file tree 5 files changed +106
-424
lines changed Original file line number Diff line number Diff line change 48
48
" python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImpl2.qll" ,
49
49
" python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImpl3.qll" ,
50
50
" python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImpl4.qll" ,
51
- " python/ql/lib/semmle/python/dataflow/new/internal/DataFlowImplForRegExp.qll" ,
52
51
" ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowImpl1.qll" ,
53
52
" ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowImpl2.qll" ,
54
53
" ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowImplForHttpClientLibraries.qll" ,
Original file line number Diff line number Diff line change 5
5
private import semmle.python.RegexTreeView
6
6
private import semmle.python.regex
7
7
private import semmle.python.dataflow.new.DataFlow
8
+ private import semmle.python.regexp.internal.RegExpTracking
8
9
9
10
/**
10
11
* Provides utility predicates related to regular expressions.
@@ -25,18 +26,18 @@ deprecated module RegExpPatterns {
25
26
* as a part of a regular expression.
26
27
*/
27
28
class RegExpPatternSource extends DataFlow:: CfgNode {
28
- private Regex astNode ;
29
+ private DataFlow :: Node sink ;
29
30
30
- RegExpPatternSource ( ) { astNode = this . asExpr ( ) }
31
+ RegExpPatternSource ( ) { this = regExpSource ( sink ) }
31
32
32
33
/**
33
34
* Gets a node where the pattern of this node is parsed as a part of
34
35
* a regular expression.
35
36
*/
36
- DataFlow:: Node getAParse ( ) { result = this }
37
+ DataFlow:: Node getAParse ( ) { result = sink }
37
38
38
39
/**
39
40
* Gets the root term of the regular expression parsed from this pattern.
40
41
*/
41
- RegExpTerm getRegExpTerm ( ) { result .getRegex ( ) = astNode }
42
+ RegExpTerm getRegExpTerm ( ) { result .getRegex ( ) = this . asExpr ( ) }
42
43
}
You can’t perform that action at this time.
0 commit comments