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 | b38723071663d490d33bbe7267858a4eaa653c6f (patch) | |
tree | 42d1c994667c47f1b9fde371c693c9bf3529887c /compile.c | |
parent | b8acfd65efcd7e4421df61ffd7d17b913d9e3736 (diff) | |
download | ruby-b38723071663d490d33bbe7267858a4eaa653c6f.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; } |