General

Profile

steviejj (Steven Johnstone)

  • Login: steviejj
  • Registered on: 11/17/2026
  • Last sign in: 11/17/2026

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 10 10

Activity

11/18/2026

06:38 PM Ruby Bug #22603 (Closed): parse.y off-by-one (len < MAX_WORD_LENGTH) fails to skip __ENCODING__ in regexp named-capture local assignment
```
$ ruby --parser=parse.y -e '/(?<__ENCODING__>a)/ =~ "a"; p [__ENCODING__, binding.local_variable_get(:__ENCODING__)]'
[#<Encoding:UTF-8>, "a"]
$ ruby -v
ruby 4.1.0dev (2026-11-18T15:35:00Z HEAD 4414d3ea25) +PRISM [aarch64-linux]
...
steviejj (Steven Johnstone)
12:44 PM Ruby Bug #22602 (Closed): parse.y rejects `build 10 do end.transform () {}`
CRuby `parse.y` rejects chained method calls where a `do ... end` command call (`block_call`) is followed by whitespace, parenthesized command arguments, and a brace block (e.g. `build 10 do end.transform () {}`, minimized `h 1do end.u (... steviejj (Steven Johnstone)
12:37 PM Ruby Bug #22601 (Closed): parse.y fails to skip a bare 3-byte UTF-8 BOM

Very minor divergence between prism and parse.y spotted in differential fuzzing. Tested on
`ruby 4.0.9 (2026-10-23 revision 3e93b23afc) +PRISM [aarch64-linux]` and `ruby 4.1.0dev (2026-11-18T09:19:17Z HEAD ed3e747aa4) +PRISM [aarch6...
steviejj (Steven Johnstone)
12:28 PM Ruby Bug #22600 (Closed): parse.y corrupts line-1 heredoc delimiter/resume offset by 3 bytes after a UTF-8 BOM

When a Ruby script or `eval` string starts with a UTF-8 BOM (`\xEF\xBB\xBF`) and declares a heredoc on line 1 (e.g. `\xEF\xBB\xBF<<EOF\nEOF\n`, `\xEF\xBB\xBF(<<EOF)\nEOF\n`, `\xEF\xBB\xBFp(<<EOF)\nEOF\n`, or `\xEF\xBB\xBF[<<EOF]\nEOF...
steviejj (Steven Johnstone)
12:21 PM Ruby Bug #22599 (Closed): parse.y rejects valid retry after a class / class << self definition inside rescue (`Invalid retry after ensure`)

In CRuby's `parse.y`, defining a class or singleton class (`class A; end` or `class << self; end`) inside a `rescue` clause causes a subsequent `retry` in the same `rescue` clause to fail compilation with `SyntaxError: Invalid retry af...
steviejj (Steven Johnstone)

11/17/2026

03:49 PM Ruby Bug #22561 (Closed): parse.y rejects empty heredocs terminated by `\r\n` (`<<""\r\n\r\n`)
CRuby `parse.y` rejects empty-delimiter heredocs (`<<''`, `<<""`, `<<-''`, `<<~''`) whenever the closing blank terminator line uses `\r\n` (`CRLF`), raising `SyntaxError: can't find string "" anywhere before EOF`—even though `parse.y` ac... steviejj (Steven Johnstone)
03:09 PM Ruby Bug #22560 (Closed): parse.y hits UNREACHABLE_RETURN(0) after compile_error in rb_parser_enc_cr_str_buf_cat

In CRuby's `parse.y`, `rb_parser_enc_cr_str_buf_cat` calls non-fatal `compile_error(p, "incompatible character encodings: ...")` (`parser_compile_error` / `ripper_compile_error`) followed immediately by `UNREACHABLE_RETURN(0)` (`__buil...
steviejj (Steven Johnstone)
02:59 PM Ruby Bug #22559 (Closed): parse.y segfault` on `.digit` error inside `alias`/`undef`
```
ruby --parser=parse.y -c -e "alias target .0when"
-e:1: no .<digit> floating literal anymore; put 0 before dot
alias target .0when
ruby: [BUG] Segmentation fault at 0x0000000000000001
ruby 4.0.9 (2026-10-23 revision 3e93b23afc...
steviejj (Steven Johnstone)
02:56 PM Ruby Bug #22558 (Closed): parse.y dereferences NULL in evstr2dstr when `%I`/`%W` word concatenation fails on mixed encodings
```
ruby -e 'STDOUT.binmode; STDOUT.write("#coding:sjis\n%I \xE2\xE2\xE20\\u0400 ".b)' | ruby --parser=parse.y -c -
-:2: invalid multibyte char (Windows-31J)
-:2: string literal encodings differ (Windows-31J / UTF-8)
-:2: untermina...
steviejj (Steven Johnstone)
02:29 PM Ruby Bug #22557 (Closed): parse.y segmentation fault parsing malformed nested case
Prism gives syntax errors:
```
ruby --parser=prism -ce 'case; when 1; case; value; in 1; end; end'
ruby: -e:1: syntax errors found (SyntaxError)
> 1 | case; when 1; case; value; in 1; end; end
| ^~~~ expected an `e...
steviejj (Steven Johnstone)

Also available in: Atom