summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-21 09:27:51 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-21 09:27:51 +0000
commit4103e718f8209dff7da1e8aa6c140820c18412ef (patch)
tree1e97bcd3c2b96cee9d3b6387bbd3fa295ffbf806 /iseq.c
parent80ca7d23f9906d28287a52ca91e12ef59f9a0f8b (diff)
merge revision(s) 33326:
warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index 639f1ce504..73806630b5 100644
--- a/iseq.c
+++ b/iseq.c
@@ -1313,7 +1313,7 @@ iseq_data_to_ary(rb_iseq_t *iseq)
}
rb_ary_push(body, ary);
- pos += RARRAY_LEN(ary);
+ pos += RARRAY_LENINT(ary); /* reject too huge data */
}
st_free_table(labels_table);