1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* vm_eval.c (eval_string_with_cref): fix WB miss.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2013-06-21 11:32:57 +00:00
parent 892736a7f8
commit c2269d9aad
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Fri Jun 21 20:32:13 2013 Koichi Sasada <ko1@atdot.net>
* vm_eval.c (eval_string_with_cref): fix WB miss.
Fri Jun 21 20:15:49 2013 Koichi Sasada <ko1@atdot.net>
* include/ruby/ruby.h: support write barrier protection for T_STRUCT.

View file

@ -1283,7 +1283,7 @@ eval_string_with_cref(VALUE self, VALUE src, VALUE scope, NODE *cref, const char
rb_str_update(mesg, 0, 0, RARRAY_AREF(errat, 0));
}
}
RARRAY_AREF(errat, 0) = RARRAY_AREF(bt2, 0);
RARRAY_ASET(errat, 0, RARRAY_AREF(bt2, 0));
}
}
rb_exc_raise(errinfo);