зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
afd50701c5
Коммит
321c94af8e
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Oct 19 10:59:36 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* iseq.c (prepare_iseq_build, rb_iseq_build_for_ruby2cext):
|
||||||
|
untrust mark array. [ruby-core:26137]
|
||||||
|
|
||||||
Mon Oct 19 05:49:53 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
|
Mon Oct 19 05:49:53 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
|
||||||
|
|
||||||
* lib/rexml/element.rb (text=): false should be converted to string.
|
* lib/rexml/element.rb (text=): false should be converted to string.
|
||||||
|
|
4
iseq.c
4
iseq.c
|
@ -220,7 +220,8 @@ prepare_iseq_build(rb_iseq_t *iseq,
|
||||||
iseq->filename = filename;
|
iseq->filename = filename;
|
||||||
iseq->line_no = line_no;
|
iseq->line_no = line_no;
|
||||||
iseq->defined_method_id = 0;
|
iseq->defined_method_id = 0;
|
||||||
iseq->mark_ary = rb_ary_new();
|
iseq->mark_ary = rb_ary_tmp_new(3);
|
||||||
|
OBJ_UNTRUST(iseq->mark_ary);
|
||||||
RBASIC(iseq->mark_ary)->klass = 0;
|
RBASIC(iseq->mark_ary)->klass = 0;
|
||||||
|
|
||||||
iseq->type = type;
|
iseq->type = type;
|
||||||
|
@ -1439,6 +1440,7 @@ rb_iseq_build_for_ruby2cext(
|
||||||
iseq->filename = rb_str_new2(filename);
|
iseq->filename = rb_str_new2(filename);
|
||||||
iseq->line_no = line_no;
|
iseq->line_no = line_no;
|
||||||
iseq->mark_ary = rb_ary_tmp_new(3);
|
iseq->mark_ary = rb_ary_tmp_new(3);
|
||||||
|
OBJ_UNTRUST(iseq->mark_ary);
|
||||||
iseq->self = iseqval;
|
iseq->self = iseqval;
|
||||||
|
|
||||||
iseq->iseq = ALLOC_N(VALUE, iseq->iseq_size);
|
iseq->iseq = ALLOC_N(VALUE, iseq->iseq_size);
|
||||||
|
|
|
@ -472,6 +472,10 @@ class TestRegexp < Test::Unit::TestCase
|
||||||
/foo/.match("foo")
|
/foo/.match("foo")
|
||||||
end.value
|
end.value
|
||||||
assert(m.tainted?)
|
assert(m.tainted?)
|
||||||
|
assert_nothing_raised('[ruby-core:26137]') {
|
||||||
|
m = proc {$SAFE = 4; /#{}/o}.call
|
||||||
|
}
|
||||||
|
assert(m.tainted?)
|
||||||
end
|
end
|
||||||
|
|
||||||
def check(re, ss, fs = [])
|
def check(re, ss, fs = [])
|
||||||
|
|
Загрузка…
Ссылка в новой задаче