diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-11 04:50:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-11 04:50:22 +0000 |
commit | 37e3fec4bba9cd4d3d70a4b5b55af04a1c0fc2a5 (patch) | |
tree | a0098f66dfffd0433deeb087bd71d631970158f1 /benchmark/bm_hash_aref_flo.rb | |
parent | b12540e1eb376c146d87bc03f5277a9f649f1764 (diff) | |
download | ruby-37e3fec4bba9cd4d3d70a4b5b55af04a1c0fc2a5.tar.gz |
array.c: fix array size overflow
* array.c (ary_ensure_room_for_push): check if array size will
exceed maxmum size to get rid of buffer overflow.
[ruby-dev:49043] [Bug #11235]
* array.c (ary_ensure_room_for_unshift, rb_ary_splice): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark/bm_hash_aref_flo.rb')
0 files changed, 0 insertions, 0 deletions