Project

General

Profile

Bug #15162 ยป 0001-transcode.c-add-GC-guard-on-raise.patch

h.shirosaki (Hiroshi Shirosaki), 09/26/2018 11:38 AM

View differences:

transcode.c
convpath = Qnil;
transcode_search_path(sname, dname, search_convpath_i, &convpath);
if (NIL_P(convpath))
rb_exc_raise(rb_econv_open_exc(sname, dname, ecflags));
if (NIL_P(convpath)) {
VALUE exc = rb_econv_open_exc(sname, dname, ecflags);
RB_GC_GUARD(snamev);
RB_GC_GUARD(dnamev);
rb_exc_raise(exc);
}
if (decorate_convpath(convpath, ecflags) == -1) {
VALUE exc = rb_econv_open_exc(sname, dname, ecflags);
    (1-1/1)