From 321c94af8e43fa199c74673b37b8205b6508ee8d Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 19 Oct 2009 01:59:38 +0000 Subject: * iseq.c (prepare_iseq_build, rb_iseq_build_for_ruby2cext): untrust mark array. [ruby-core:26137] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_regexp.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/ruby/test_regexp.rb b/test/ruby/test_regexp.rb index 541804ade5..4f8a1a6c77 100644 --- a/test/ruby/test_regexp.rb +++ b/test/ruby/test_regexp.rb @@ -472,6 +472,10 @@ class TestRegexp < Test::Unit::TestCase /foo/.match("foo") end.value assert(m.tainted?) + assert_nothing_raised('[ruby-core:26137]') { + m = proc {$SAFE = 4; /#{}/o}.call + } + assert(m.tainted?) end def check(re, ss, fs = []) -- cgit v1.2.3