[前][次][番号順一覧][スレッド一覧]

ruby-changes:26038

From: shirosaki <ko1@a...>
Date: Sat, 1 Dec 2012 07:29:24 +0900 (JST)
Subject: [ruby-changes:26038] shirosaki:r38095 (trunk): * compile.c (ADD_CATCH_ENTRY): add a cast to fix SEGV with x64 mingw

shirosaki	2012-12-01 07:29:13 +0900 (Sat, 01 Dec 2012)

  New Revision: 38095

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38095

  Log:
    * compile.c (ADD_CATCH_ENTRY): add a cast to fix SEGV with x64 mingw
      on Windows 8. Without cast, 0 might be non zero value at higher bits
      in rb_ary_new3().
      [ruby-core:50258] [Bug #7456]

  Modified files:
    trunk/ChangeLog
    trunk/compile.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38094)
+++ ChangeLog	(revision 38095)
@@ -1,3 +1,10 @@
+Sat Dec  1 07:16:17 2012  Hiroshi Shirosaki  <h.shirosaki@g...>
+
+	* compile.c (ADD_CATCH_ENTRY): add a cast to fix SEGV with x64 mingw
+	  on Windows 8. Without cast, 0 might be non zero value at higher bits
+	  in rb_ary_new3().
+	  [ruby-core:50258] [Bug #7456]
+
 Sat Dec  1 04:07:57 2012  NARUSE, Yui  <naruse@r...>
 
 	* parse.y (parser.utf8): remove unused property.
Index: compile.c
===================================================================
--- compile.c	(revision 38094)
+++ compile.c	(revision 38095)
@@ -249,7 +249,7 @@
     (rb_ary_push(iseq->compile_data->catch_table_ary,		\
 		 rb_ary_new3(5, (type),				\
 			     (VALUE)(ls) | 1, (VALUE)(le) | 1,	\
-			     (iseqv), (VALUE)(lc) | 1)))
+			     (VALUE)(iseqv), (VALUE)(lc) | 1)))
 
 /* compile node */
 #define COMPILE(anchor, desc, node) \

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]