From 43e41029bf3594353513375d76ba15ded19b0a63 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 28 Feb 2018 23:31:42 +0000 Subject: Revert r61936 "compile.c: use ALLOCV_N" * compile.c (ibf_dump_object_list): `dump->obj_list` is not fixed yet, as new objects are pushed by lbf_dump_object_object. fixes crash by buffer overflow. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_iseq.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') diff --git a/test/ruby/test_iseq.rb b/test/ruby/test_iseq.rb index 6e81c63915..4c811611ba 100644 --- a/test/ruby/test_iseq.rb +++ b/test/ruby/test_iseq.rb @@ -395,4 +395,13 @@ class TestISeq < Test::Unit::TestCase end } end + + def test_to_binary_with_objects + code = "[]"+100.times.map{|i|"<