Skip to content

Commit bed9d6c

Browse files
committed
merge revision(s) 44731,44751: [Backport ruby#8978]
* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value. [ruby-core:57599] [Bug ruby#8978]. Thanks mame! * ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value. [ruby-core:57599] [Bug ruby#8978]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent c3729ca commit bed9d6c

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

ChangeLog

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
Sat Feb 22 16:34:12 2014 Yusuke Endoh <[email protected]>
2+
3+
* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
4+
[ruby-core:57599] [Bug #8978].
5+
6+
Sat Feb 22 16:34:12 2014 Aaron Patterson <[email protected]>
7+
8+
* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
9+
[ruby-core:57599] [Bug #8978]. Thanks mame!
10+
111
Sat Feb 22 16:17:54 2014 Eric Wong <[email protected]>
212

313
* ext/socket/ancdata.c (bsock_sendmsg_internal): only retry on error

ext/fiddle/closure.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dealloc(void * ptr)
2727
#if USE_FFI_CLOSURE_ALLOC
2828
ffi_closure_free(cls->pcl);
2929
#else
30-
munmap(cls->pcl, sizeof(cls->pcl));
30+
munmap(cls->pcl, sizeof(*cls->pcl));
3131
#endif
3232
if (cls->argv) xfree(cls->argv);
3333
xfree(cls);
@@ -234,7 +234,7 @@ initialize(int rbargc, VALUE argv[], VALUE self)
234234
#else
235235
result = ffi_prep_closure(pcl, cif, callback, (void *)self);
236236
cl->code = (void *)pcl;
237-
i = mprotect(pcl, sizeof(pcl), PROT_READ | PROT_EXEC);
237+
i = mprotect(pcl, sizeof(*pcl), PROT_READ | PROT_EXEC);
238238
if (i) {
239239
rb_sys_fail("mprotect");
240240
}

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define RUBY_VERSION "2.1.1"
22
#define RUBY_RELEASE_DATE "2014-02-22"
3-
#define RUBY_PATCHLEVEL 66
3+
#define RUBY_PATCHLEVEL 67
44

55
#define RUBY_RELEASE_YEAR 2014
66
#define RUBY_RELEASE_MONTH 2

0 commit comments

Comments
 (0)