Bug #18140 ยป 0001-Guard-array-when-appending.patch
array.c | ||
---|---|---|
if (n > 0) {
|
||
rb_ary_splice(x, RARRAY_LEN(x), 0, RARRAY_CONST_PTR_TRANSIENT(y), n);
|
||
}
|
||
RB_GC_GUARD(y);
|
||
return x;
|
||
}
|
||