Project

General

Profile

Bug #9769 » stringio_infect.patch

dearblue (宗介 相良), 04/22/2014 11:47 AM

View differences:

ext/stringio/stringio.c (working copy)
else {
strio_extend(ptr, ptr->pos, len);
memmove(RSTRING_PTR(ptr->string)+ptr->pos, RSTRING_PTR(str), len);
OBJ_INFECT(ptr->string, str);
}
OBJ_INFECT(ptr->string, str);
OBJ_INFECT(ptr->string, self);
ptr->pos += len;
return LONG2NUM(len);
    (1-1/1)