Project

General

Profile

Actions

Bug #16088

closed

[patch] Call #to_binary on iseq containing pattern match crashes

Added by alanwu (Alan Wu) almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.7.0dev (2019-08-06T18:13:17Z master 8877dbe400) [x86_64-darwin18]
[ruby-core:94201]

Description

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

Actions

Also available in: Atom PDF

Like0
Like0