[ruby-core:94201] [Ruby master Bug#16088] [patch] Call #to_binary on iseq containing pattern match crashes
From:
XrXr@...
Date:
2019-08-08 15:33:11 UTC
List:
ruby-core #94201
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: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>