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

ruby-changes:32929

From: nagachika <ko1@a...>
Date: Mon, 17 Feb 2014 01:13:50 +0900 (JST)
Subject: [ruby-changes:32929] nagachika:r45008 (ruby_2_0_0): merge revision(s) r44731, r44751: [Backport #8978]

nagachika	2014-02-17 01:13:45 +0900 (Mon, 17 Feb 2014)

  New Revision: 45008

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

  Log:
    merge revision(s) r44731,r44751: [Backport #8978]
    
    * ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
      [ruby-core:57599] [Bug #8978].  Thanks mame!
    
    * ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
      [ruby-core:57599] [Bug #8978].

  Modified directories:
    branches/ruby_2_0_0/
  Modified files:
    branches/ruby_2_0_0/ChangeLog
    branches/ruby_2_0_0/ext/fiddle/closure.c
    branches/ruby_2_0_0/version.h
Index: ruby_2_0_0/ChangeLog
===================================================================
--- ruby_2_0_0/ChangeLog	(revision 45007)
+++ ruby_2_0_0/ChangeLog	(revision 45008)
@@ -1,3 +1,13 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1
+Mon Feb 17 01:12:57 2014  Yusuke Endoh  <mame@t...>
+
+	* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
+	  [ruby-core:57599] [Bug #8978].
+
+Mon Feb 17 01:12:57 2014  Aaron Patterson <aaron@t...>
+
+	* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
+	  [ruby-core:57599] [Bug #8978].  Thanks mame!
+
 Mon Feb 17 01:09:52 2014  Eric Wong <e@8...>
 
 	* benchmark/driver: avoid large alloc in driver process
Index: ruby_2_0_0/ext/fiddle/closure.c
===================================================================
--- ruby_2_0_0/ext/fiddle/closure.c	(revision 45007)
+++ ruby_2_0_0/ext/fiddle/closure.c	(revision 45008)
@@ -21,7 +21,7 @@ dealloc(void * ptr) https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ext/fiddle/closure.c#L21
 #ifndef DONT_USE_FFI_CLOSURE_ALLOC
     ffi_closure_free(cls->pcl);
 #else
-    munmap(cls->pcl, sizeof(cls->pcl));
+    munmap(cls->pcl, sizeof(*cls->pcl));
 #endif
     if (cls->argv) xfree(cls->argv);
     xfree(cls);
@@ -228,7 +228,7 @@ initialize(int rbargc, VALUE argv[], VAL https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ext/fiddle/closure.c#L228
 #else
     result = ffi_prep_closure(pcl, cif, callback, (void *)self);
     cl->code = (void *)pcl;
-    i = mprotect(pcl, sizeof(pcl), PROT_READ | PROT_EXEC);
+    i = mprotect(pcl, sizeof(*pcl), PROT_READ | PROT_EXEC);
     if (i) {
 	rb_sys_fail("mprotect");
     }
Index: ruby_2_0_0/version.h
===================================================================
--- ruby_2_0_0/version.h	(revision 45007)
+++ ruby_2_0_0/version.h	(revision 45008)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/version.h#L1
 #define RUBY_VERSION "2.0.0"
 #define RUBY_RELEASE_DATE "2014-02-17"
-#define RUBY_PATCHLEVEL 426
+#define RUBY_PATCHLEVEL 427
 
 #define RUBY_RELEASE_YEAR 2014
 #define RUBY_RELEASE_MONTH 2

Property changes on: ruby_2_0_0
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r44731,44751


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

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