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
1717/** Provides classes for modeling Regular Expression-related APIs. */
1818module RegexExecution {
1919 /**
20- * A data-flow node that collects methods immediately executing an expression.
20+ * A data-flow node that executes a regular expression.
2121 *
2222 * Extend this class to model new APIs. If you want to refine existing API models,
2323 * extend `RegexExecution` instead.
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ private module Re {
6060 exists ( DataFlow:: CallCfgNode patternCall , DataFlow:: AttrRead reMethod |
6161 this .getFunction ( ) = reMethod and
6262 patternCall = API:: moduleImport ( "re" ) .getMember ( "compile" ) .getACall ( ) and
63- patternCall = reMethod .getObject ( ) . getALocalSource ( ) and
63+ patternCall . flowsTo ( reMethod .getObject ( ) ) and
6464 reMethod .getAttributeName ( ) instanceof RegexExecutionMethods and
6565 regexNode = patternCall .getArg ( 0 )
6666 )
You can’t perform that action at this time.
0 commit comments