Commit d499524
Set string length in string_spec_RSTRING_PTR_read
Since we do not set the length between the call to `read(fd, buffer, 30)`
and `rb_str_modify_expand(str, 53)`, the length of the string is technically
zero. If the call to `rb_str_modify_expand` actually expands the buffer,
it will overwrite all the contents from the `read`.1 parent 011609c commit d499524
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| 396 | + | |
396 | 397 | | |
397 | 398 | | |
398 | 399 | | |
| |||
0 commit comments