mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
add redos support for the simplest possible inverted char class
This commit is contained in:
@@ -52,3 +52,4 @@
|
||||
| tst.js:77:14:77:21 | (a\|aa?)* | This part of the regular expression may cause exponential backtracking on strings containing many repetitions of 'a'. |
|
||||
| tst.js:83:14:83:20 | (.\|\\n)* | This part of the regular expression may cause exponential backtracking on strings containing many repetitions of '\\n'. |
|
||||
| tst.js:89:25:89:32 | (a\|aa?)* | This part of the regular expression may cause exponential backtracking on strings containing many repetitions of 'a'. |
|
||||
| tst.js:95:15:95:25 | ([^]\|[^a])* | This part of the regular expression may cause exponential backtracking on strings containing many repetitions of 'b'. |
|
||||
|
||||
@@ -90,3 +90,7 @@ var bad17 = new RegExp('(a|aa?)*b');
|
||||
|
||||
// GOOD - not used as regexp
|
||||
var good9 = '(a|aa?)*b';
|
||||
|
||||
// NOT GOOD
|
||||
var bad18 = /(([^]|[^a])*)"/;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user