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:
Updated by nobu (Nobuyoshi Nakada) about 13 hours ago
- Backport changed from 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN to 3.3: REQUIRED, 3.4: REQUIRED, 4.0: REQUIRED
Updated by nobu (Nobuyoshi Nakada) about 12 hours ago
- Status changed from Open to Closed
Actions