Skip to content

Commit c8d29a9

Browse files
committed
sync files
1 parent 1a8b6d7 commit c8d29a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ruby/ql/lib/codeql/ruby/security/performance/ReDoSUtil.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ predicate matchesEpsilon(RegExpTerm t) {
9898
matchesEpsilon(t.(RegExpBackRef).getGroup())
9999
or
100100
forex(RegExpTerm child | child = t.(RegExpSequence).getAChild() | matchesEpsilon(child))
101+
or
102+
t.(RegExpRange).getLowerBound() = 0
101103
}
102104

103105
/**

0 commit comments

Comments
 (0)