mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_eval.c (rb_throw_obj): add GC guard to prevent intermediate
variable from GC. [Bug #4322] [ruby-dev:43108] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0522ffd51f
commit
ab083dc640
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Jan 26 22:28:49 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
|
||||
|
||||
* vm_eval.c (rb_throw_obj): add GC guard to prevent intermediate
|
||||
variable from GC. [Bug #4322] [ruby-dev:43108]
|
||||
|
||||
Wed Jan 26 17:08:59 2011 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
|
||||
|
||||
* ext/openssl/ossl_asn1.c (ossl_asn1_decode0): OpenSSL::ASN1.decode
|
||||
|
|
|
@ -1438,6 +1438,7 @@ rb_throw_obj(VALUE tag, VALUE value)
|
|||
}
|
||||
if (!tt) {
|
||||
VALUE desc = rb_inspect(tag);
|
||||
RB_GC_GUARD(desc);
|
||||
rb_raise(rb_eArgError, "uncaught throw %s", RSTRING_PTR(desc));
|
||||
}
|
||||
rb_trap_restore_mask();
|
||||
|
|
Loading…
Add table
Reference in a new issue