Actions
Bug #22601
closedparse.y fails to skip a bare 3-byte UTF-8 BOM
Bug #22601:
parse.y fails to skip a bare 3-byte UTF-8 BOM
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 4.0.9 (2026-10-23 revision 3e93b23afc) +PRISM [arm64-darwin27]
Description
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 [aarch64-linux].
Executing a 3-byte .rb file containing only the BOM ("\xEF\xBB\xBF") or evaluating it with eval:
Actions