mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
refine isFork to remove false positive when a state has epsilon transition to itself
This commit is contained in:
@@ -133,7 +133,6 @@
|
||||
| tst.js:317:18:317:23 | [\\w-]* | This part of the regular expression may cause exponential backtracking on strings starting with 'foo' and containing many repetitions of '-'. |
|
||||
| tst.js:320:15:320:19 | (ab)* | This part of the regular expression may cause exponential backtracking on strings containing many repetitions of 'ab'. |
|
||||
| tst.js:323:14:323:20 | (a?a?)* | This part of the regular expression may cause exponential backtracking on strings containing many repetitions of 'a'. |
|
||||
| tst.js:326:15:326:19 | (a?)* | This part of the regular expression may cause exponential backtracking on strings containing many repetitions of 'a'. |
|
||||
| tst.js:329:14:329:20 | (c?a?)* | This part of the regular expression may cause exponential backtracking on strings containing many repetitions of 'a'. |
|
||||
| tst.js:332:14:332:22 | (?:a\|a?)+ | This part of the regular expression may cause exponential backtracking on strings containing many repetitions of 'a'. |
|
||||
| tst.js:335:14:335:20 | (a?b?)* | This part of the regular expression may cause exponential backtracking on strings containing many repetitions of 'a'. |
|
||||
|
||||
@@ -322,7 +322,7 @@ var bad70 = /((ab)*)+c/;
|
||||
// NOT GOOD
|
||||
var bad71 = /(a?a?)*b/;
|
||||
|
||||
// GOOD - but still flagged. only quadratic blowup. (The NFA looks very similar to `/(a*)*b/`)
|
||||
// GOOD
|
||||
var good38 = /(a?)*b/;
|
||||
|
||||
// NOT GOOD - but wrong pump string.
|
||||
|
||||
Reference in New Issue
Block a user