Skip to content
Permalink
Browse files
Fixed out of bounds access; fix #3572, ref #3553
  • Loading branch information
matz committed Apr 2, 2017
1 parent 5a445f0 commit 5d00e853143016128bd54a3d09dae5cc488b7b2b
Showing 1 changed file with 1 addition and 1 deletion.
@@ -215,7 +215,7 @@ mrb_ary_slice_bang(mrb_state *mrb, mrb_value self)
}

ptr = a->ptr + i;
for (j = i; j <= a->len - len; ++j) {
for (j = i; j < a->len - len; ++j) {
*ptr = *(ptr+len);
++ptr;
}

0 comments on commit 5d00e85

Please sign in to comment.