mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
Fix to PolynomialRedos not finding results and to test cases not finding that
This commit is contained in:
@@ -24,11 +24,11 @@ class PolynomialRedosSink extends DataFlow::Node {
|
||||
|
||||
PolynomialRedosSink() { regexMatchedAgainst(reg.getRegex(), this.asExpr()) }
|
||||
|
||||
RegExpTerm getRegExp() { result = reg }
|
||||
RegExpTerm getRegExp() { result.getParent() = reg }
|
||||
}
|
||||
|
||||
class PolynomialRedosConfig extends TaintTracking::Configuration {
|
||||
PolynomialRedosConfig() { this = "PolynomialRodisConfig" }
|
||||
PolynomialRedosConfig() { this = "PolynomialRedosConfig" }
|
||||
|
||||
override predicate isSource(DataFlow::Node src) { src instanceof RemoteFlowSource }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user