Skip to content

Commit

Permalink
LZ4::Decoder.read でバッファ領域が確保されていなかった問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
dearblue committed Jan 13, 2018
1 parent c4b24d1 commit a136376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/frameapi.c
Expand Up @@ -503,7 +503,7 @@ fdec_read_args(int argc, VALUE argv[], size_t *size, VALUE *buf)
*size = NUM2SIZET(argv[0]);
*buf = argv[1];
rb_check_type(*buf, RUBY_T_STRING);
rb_str_modify(*buf);
aux_str_reserve(*buf, *size);
rb_str_set_len(*buf, 0);
break;
default:
Expand Down

0 comments on commit a136376

Please sign in to comment.