diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-26 23:00:37 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-26 23:00:37 +0000 |
commit | 65f7aa19a923baf7db4bfe13886f697d26a43061 (patch) | |
tree | 0f6996ec68c8829c104249bb30ad810e8310d183 /compile.c | |
parent | 618dadaaaacb7aca96fdc7abb1fd2607835dd08c (diff) |
compile.c (iseq_set_sequence): check for multiplication overflow
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1649,7 +1649,7 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor) iseq->iseq_size = pos; iseq->stack_max = stack_max; - line_info_table = ruby_xrealloc(line_info_table, k * sizeof(struct iseq_line_info_entry)); + line_info_table = REALLOC_N(line_info_table, struct iseq_line_info_entry, k); iseq->line_info_table = line_info_table; iseq->line_info_size = k; |