Skip to content

Commit 175a06f

Browse files
committed
Python: Fix compile error due to predicate rename
1 parent 35d9005 commit 175a06f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/ql/lib/semmle/python/security/dataflow/PolynomialReDoSCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ module PolynomialReDoS {
6161

6262
RegexExecutionAsSink() {
6363
exists(RegexExecution re |
64-
re.getRegexNode().asExpr() = t.getRegex() and
64+
re.getRegex().asExpr() = t.getRegex() and
6565
this = re.getString()
6666
) and
6767
t.isRootTerm()

python/ql/lib/semmle/python/security/injection/RegexInjectionCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module RegexInjection {
2828
class Sink extends DataFlow::Node {
2929
RegexExecution regexExecution;
3030

31-
Sink() { this = regexExecution.getRegexNode() }
31+
Sink() { this = regexExecution.getRegex() }
3232

3333
/** Gets the call that executes the regular expression marked by this sink. */
3434
RegexExecution getRegexExecution() { result = regexExecution }

0 commit comments

Comments
 (0)