mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
transcode.c: GC guard
* transcode.c (rb_econv_substr_append): prevent src from GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8579a33966
commit
a4eae61521
1 changed files with 1 additions and 0 deletions
|
@ -1850,6 +1850,7 @@ rb_econv_substr_append(rb_econv_t *ec, VALUE src, long off, long len, VALUE dst,
|
|||
rb_econv_check_error(ec);
|
||||
}
|
||||
|
||||
RB_GC_GUARD(src);
|
||||
return dst;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue