Bug #9769 » stringio_infect.patch
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);
|