Python: Fix compile error due to predicate rename

This commit is contained in:
Rasmus Lerchedahl Petersen
2021-10-01 10:33:42 +02:00
parent 35d9005eae
commit 175a06fe73
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ module PolynomialReDoS {
RegexExecutionAsSink() {
exists(RegexExecution re |
re.getRegexNode().asExpr() = t.getRegex() and
re.getRegex().asExpr() = t.getRegex() and
this = re.getString()
) and
t.isRootTerm()

View File

@@ -28,7 +28,7 @@ module RegexInjection {
class Sink extends DataFlow::Node {
RegexExecution regexExecution;
Sink() { this = regexExecution.getRegexNode() }
Sink() { this = regexExecution.getRegex() }
/** Gets the call that executes the regular expression marked by this sink. */
RegexExecution getRegexExecution() { result = regexExecution }