diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-02 02:39:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-02 02:39:34 +0000 |
commit | 6bb70c11b344dee0739c6fb7bbf0ea124b5225b6 (patch) | |
tree | 707b0fceb6f5d2b988c3d513c94e709b5e780fd1 /vm.c | |
parent | ccc52902c00ac3758c2e20105bb33fae5a08583b (diff) | |
download | ruby-6bb70c11b344dee0739c6fb7bbf0ea124b5225b6.tar.gz |
enum.c: mitigate overflows
* enum.c (enum_count): convert counters to Integer as unsigned
long, instead of long, to mitigate overflows.
[ruby-core:87348] [Bug #14805]
* enum.c (ary_inject_op): ditto.
* enum.c (each_with_index_i): ditto, instead of int.
* enum.c (find_index_i, find_index_iter_i): ditto, instead of
unsigned int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
0 files changed, 0 insertions, 0 deletions