Skip to content

Commit 4d683d0

Browse files
committed
merge revision(s) r48999,r49484: [Backport ruby#10646]
* gc.c (wmap_final_func): fix memory size shortage when realloc wmap. Fix SEGV during finilize of WeakRef on Solaris (though the SEGV could occur on all OS/platforms). [ruby-dev:48779] [Bug ruby#10646] Fix SEGV during finalize of WeakRef on Solaris (though the SEGV git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@50132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent ed22c21 commit 4d683d0

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Tue Mar 31 00:49:23 2015 Naohisa Goto <[email protected]>
2+
3+
* gc.c (wmap_final_func): fix memory size shortage when realloc wmap.
4+
Fix SEGV during finalize of WeakRef on Solaris (though the SEGV
5+
could occur on all OS/platforms). [ruby-dev:48779] [Bug #10646]
6+
17
Tue Mar 31 00:38:14 2015 Seiei Higa <[email protected]>
28

39
* vm_method.c (rb_method_entry): if no super class, no original

gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6413,7 +6413,7 @@ wmap_final_func(st_data_t *key, st_data_t *value, st_data_t arg, int existing)
64136413
return ST_DELETE;
64146414
}
64156415
if (j < i) {
6416-
ptr = ruby_sized_xrealloc2(ptr, j, sizeof(VALUE), i);
6416+
ptr = ruby_sized_xrealloc2(ptr, j + 1, sizeof(VALUE), i);
64176417
ptr[0] = j;
64186418
*value = (st_data_t)ptr;
64196419
}

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.5"
22
#define RUBY_RELEASE_DATE "2015-03-31"
3-
#define RUBY_PATCHLEVEL 327
3+
#define RUBY_PATCHLEVEL 328
44

55
#define RUBY_RELEASE_YEAR 2015
66
#define RUBY_RELEASE_MONTH 3

0 commit comments

Comments
 (0)