diff options
| author | Mike Dalessio <mike.dalessio@gmail.com> | 2023-11-12 13:47:11 -0500 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-11-14 05:25:46 +0000 |
| commit | e020eb26f060d96e332a1beb1001716ddda7a7a6 (patch) | |
| tree | 03df402ec12bea4fb8f7d1bafd9b3be7b3ecf2ac /test | |
| parent | 33b92c2d6bcba16382cbb33159b8ce7e4d9802de (diff) | |
[ruby/prism] fix: Handle zero-length block parameters in invalid Ruby
Found by fuzzing.
https://github.com/ruby/prism/commit/4cd6c8cf98
Diffstat (limited to 'test')
| -rw-r--r-- | test/prism/fuzzer_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/prism/fuzzer_test.rb b/test/prism/fuzzer_test.rb index 04e45518b1..0aabd56242 100644 --- a/test/prism/fuzzer_test.rb +++ b/test/prism/fuzzer_test.rb @@ -57,5 +57,7 @@ module Prism a /{/, ''\\ RUBY + + snippet "parameter name that is zero length", "a { |b;" end end |
