ruby-changes:54744
From: usa <ko1@a...>
Date: Thu, 31 Jan 2019 19:36:35 +0900 (JST)
Subject: [ruby-changes:54744] usa:r66961 (ruby_2_4): merge revision(s) 64879: [Backport #15162]
usa 2019-01-31 19:36:30 +0900 (Thu, 31 Jan 2019) New Revision: 66961 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66961 Log: merge revision(s) 64879: [Backport #15162] transcode.c: add GC guard on raise * transcode.c (econv_s_search_convpath): add GC guard to fix SEGV on raise. [Bug #15162] [ruby-core:89172] Modified directories: branches/ruby_2_4/ Modified files: branches/ruby_2_4/transcode.c branches/ruby_2_4/version.h Index: ruby_2_4/transcode.c =================================================================== --- ruby_2_4/transcode.c (revision 66960) +++ ruby_2_4/transcode.c (revision 66961) @@ -3150,8 +3150,12 @@ econv_s_search_convpath(int argc, VALUE https://github.com/ruby/ruby/blob/trunk/ruby_2_4/transcode.c#L3150 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); Index: ruby_2_4/version.h =================================================================== --- ruby_2_4/version.h (revision 66960) +++ ruby_2_4/version.h (revision 66961) @@ -1,10 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_4/version.h#L1 #define RUBY_VERSION "2.4.6" -#define RUBY_RELEASE_DATE "2018-10-24" -#define RUBY_PATCHLEVEL 336 +#define RUBY_RELEASE_DATE "2019-01-31" +#define RUBY_PATCHLEVEL 337 -#define RUBY_RELEASE_YEAR 2018 -#define RUBY_RELEASE_MONTH 10 -#define RUBY_RELEASE_DAY 24 +#define RUBY_RELEASE_YEAR 2019 +#define RUBY_RELEASE_MONTH 1 +#define RUBY_RELEASE_DAY 31 #include "ruby/version.h" Index: ruby_2_4 =================================================================== --- ruby_2_4 (revision 66960) +++ ruby_2_4 (revision 66961) Property changes on: ruby_2_4 ___________________________________________________________________ Modified: svn:mergeinfo ## -0,0 +0,1 ## Merged /trunk:r64879 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/