mirror of
https://github.com/github/codeql.git
synced 2026-05-04 05:05:12 +02:00
Ruby: update ReDoS.expected
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
| tst.rb:74:10:74:17 | (b\|a?b)* | This part of the regular expression may cause exponential backtracking on strings containing many repetitions of 'b'. |
|
||||
| tst.rb:77:10:77:17 | (a\|aa?)* | This part of the regular expression may cause exponential backtracking on strings containing many repetitions of 'a'. |
|
||||
| tst.rb:83:10:83:16 | (.\|\\n)* | This part of the regular expression may cause exponential backtracking on strings containing many repetitions of '\\n'. |
|
||||
| tst.rb:89:21:89:28 | (a\|aa?)* | This part of the regular expression may cause exponential backtracking on strings containing many repetitions of 'a'. |
|
||||
| tst.rb:95:11:95:24 | ([\\S\\s]\|[^a])* | This part of the regular expression may cause exponential backtracking on strings containing many repetitions of '`'. |
|
||||
| tst.rb:101:11:101:19 | (.\|[^a])* | This part of the regular expression may cause exponential backtracking on strings containing many repetitions of '`'. |
|
||||
| tst.rb:107:11:107:19 | (b\|[^a])* | This part of the regular expression may cause exponential backtracking on strings containing many repetitions of 'b'. |
|
||||
|
||||
@@ -85,7 +85,7 @@ bad16 = /(.|\n)*!/m
|
||||
# GOOD
|
||||
good8 = /([\w.]+)*/
|
||||
|
||||
# BAD - we don't yet parse regexps constructed from strings
|
||||
# NOT GOOD
|
||||
bad17 = Regexp.new '(a|aa?)*b'
|
||||
|
||||
# GOOD - not used as regexp
|
||||
|
||||
Reference in New Issue
Block a user