Project

General

Profile

« Previous | Next » 

Revision 8a647876

Added by nobu (Nobuyoshi Nakada) almost 9 years ago

string.c: fix integer overflow

  • string.c (rb_str_change_terminator_length): fix integer overflow
    in the case growing the terminator length and the string length
    is around LONG_MAX.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e