Skip to content

Commit e4bc193

Browse files
committed
JS: Lower field-flow branch limit on Polynomial ReDoS
1 parent 63d07fe commit e4bc193

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

javascript/ql/lib/semmle/javascript/security/regexp/PolynomialReDoSQuery.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ module PolynomialReDoSConfig implements DataFlow::ConfigSig {
2727
// TODO: localFieldStep is too expensive with dataflow2
2828
// DataFlow::localFieldStep(pred, succ)
2929
}
30+
31+
int fieldFlowBranchLimit() { result = 1 } // library inputs are too expensive on some projects
3032
}
3133

3234
/** Taint-tracking for reasoning about polynomial regular expression denial-of-service attacks. */

0 commit comments

Comments
 (0)