File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
python/ql/src/experimental/semmle/python Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ private import experimental.semmle.python.Frameworks
17
17
/** Provides classes for modeling Regular Expression-related APIs. */
18
18
module RegexExecution {
19
19
/**
20
- * A data-flow node that collects methods immediately executing an expression.
20
+ * A data-flow node that executes a regular expression.
21
21
*
22
22
* Extend this class to model new APIs. If you want to refine existing API models,
23
23
* extend `RegexExecution` instead.
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ private module Re {
60
60
exists ( DataFlow:: CallCfgNode patternCall , DataFlow:: AttrRead reMethod |
61
61
this .getFunction ( ) = reMethod and
62
62
patternCall = API:: moduleImport ( "re" ) .getMember ( "compile" ) .getACall ( ) and
63
- patternCall = reMethod .getObject ( ) . getALocalSource ( ) and
63
+ patternCall . flowsTo ( reMethod .getObject ( ) ) and
64
64
reMethod .getAttributeName ( ) instanceof RegexExecutionMethods and
65
65
regexNode = patternCall .getArg ( 0 )
66
66
)
You can’t perform that action at this time.
0 commit comments