diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-08 15:26:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-08 15:26:58 +0000 |
commit | 278d90a255d326c55c54dcfb95eaad482a8a3060 (patch) | |
tree | 42d1c994667c47f1b9fde371c693c9bf3529887c /compile.c | |
parent | 3ba62bde3604feabbb0c34a77b9b81c6f20b0f42 (diff) | |
download | ruby-278d90a255d326c55c54dcfb95eaad482a8a3060.tar.gz |
compile.c: fix extra_str
* compile.c (iseq_ibf_load_extra_data): fix offset and
length of extra_str, which is not NUL-terminated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8284,7 +8284,7 @@ iseq_ibf_load_extra_data(VALUE str) VALUE extra_str; ibf_load_setup(load, loader_obj, str); - extra_str = rb_str_new2(load->buff + load->header->extra_size); + extra_str = rb_str_new(load->buff + load->header->size, load->header->extra_size); RB_GC_GUARD(loader_obj); return extra_str; } |