Skip to content

Commit 5698356

Browse files
committed
Update ReDoS length guard
Changes to barrier guards in a previous commit mean we need to update this guard to match.
1 parent b4c2942 commit 5698356

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ql/lib/codeql/ruby/regexp/PolynomialReDoSCustomizations.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ module PolynomialReDoS {
124124
)
125125
}
126126

127-
override DataFlow::Node getAGuardedNode() { result = input }
127+
override predicate checks(CfgNode node, boolean branch) {
128+
node = input.asExpr() and branch = true
129+
}
128130
}
129131
}

0 commit comments

Comments
 (0)