From: XrXr@... Date: 2019-08-08T15:33:11+00:00 Subject: [ruby-core:94201] [Ruby master Bug#16088] [patch] Call #to_binary on iseq containing pattern match crashes Issue #16088 has been reported by alanwu (Alan Wu). ---------------------------------------- Bug #16088: [patch] Call #to_binary on iseq containing pattern match crashes https://bugs.ruby-lang.org/issues/16088 * Author: alanwu (Alan Wu) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.7.0dev (2019-08-06T18:13:17Z master 8877dbe400) [x86_64-darwin18] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- Crasher: `miniruby -e 'RubyVM::InstructionSequence.compile("case foo in []; end").to_binary'` It crashes since there is no handling for dumping `TypeError` and `NoMatchingPatternError` in the binary dumper. Patch: https://github.com/ruby/ruby/pull/2325 -- https://bugs.ruby-lang.org/ Unsubscribe: