summaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-23 02:28:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-23 02:28:08 +0000
commit4d7c55ad9260b9e56b67d98b562042195c988d3c (patch)
tree2d39ce7a752223f54a2c572b64e1e74065bdb225 /bootstraptest
parentb14406cb0fa8b75517d59a455cceb442f4f7a788 (diff)
downloadruby-4d7c55ad9260b9e56b67d98b562042195c988d3c.tar.gz
ruby-4d7c55ad9260b9e56b67d98b562042195c988d3c.tar.xz
ruby-4d7c55ad9260b9e56b67d98b562042195c988d3c.zip
* tool/instruction.rb (make_header_prepare_stack): check stack
overflow. [ruby-core:25714] * tool/instruction.rb (make_footer_stack_val): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_eval.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/bootstraptest/test_eval.rb b/bootstraptest/test_eval.rb
index 452ce4310..f63d995ff 100644
--- a/bootstraptest/test_eval.rb
+++ b/bootstraptest/test_eval.rb
@@ -308,3 +308,14 @@ assert_equal "[:x]", %q{
binding
end
}, '[ruby-core:25125]'
+
+assert_normal_exit %q{
+ hash = {}
+ ("aaaa".."matz").each_with_index do |s, i|
+ hash[s] = i
+ end
+ begin
+ eval "class C; @@h = #{hash.inspect}; end"
+ rescue SystemStackError
+ end
+}, '[ruby-core:25714]'