mirror of
https://github.com/github/codeql.git
synced 2026-04-24 00:05:14 +02:00
Update ReDoS length guard
Changes to barrier guards in a previous commit mean we need to update this guard to match.
This commit is contained in:
@@ -124,6 +124,8 @@ module PolynomialReDoS {
|
||||
)
|
||||
}
|
||||
|
||||
override DataFlow::Node getAGuardedNode() { result = input }
|
||||
override predicate checks(CfgNode node, boolean branch) {
|
||||
node = input.asExpr() and branch = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user