Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f576144

Browse files
committed
more pruning based on states being inside a repetition
1 parent 9468a6e commit f576144

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

javascript/ql/src/Performance/ReDoS.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,9 @@ predicate isFork(State q, InputSymbol s1, InputSymbol s2, State r1, State r2) {
702702
r1 != r2
703703
or
704704
r1 = r2 and q1 != q2
705-
)
705+
) and
706+
stateInsideBacktracking(r1) and
707+
stateInsideBacktracking(r2)
706708
}
707709

708710
/**

0 commit comments

Comments
 (0)