Skip to content

Commit c8ec78c

Browse files
committed
merge revision(s) r47683: [Backport ruby#10281]
array.c: GC guard * array.c (rb_ary_splice): prevent replacing array from GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@47701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 77ce45d commit c8ec78c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

array.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,6 +1585,7 @@ rb_ary_splice(VALUE ary, long beg, long len, VALUE rpl)
15851585
MEMMOVE(RARRAY_PTR(ary) + beg, RARRAY_CONST_PTR(rpl), VALUE, rlen);
15861586
}
15871587
}
1588+
RB_GC_GUARD(rpl);
15881589
}
15891590

15901591
void

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.4"
22
#define RUBY_RELEASE_DATE "2014-09-24"
3-
#define RUBY_PATCHLEVEL 244
3+
#define RUBY_PATCHLEVEL 245
44

55
#define RUBY_RELEASE_YEAR 2014
66
#define RUBY_RELEASE_MONTH 9

0 commit comments

Comments
 (0)