[ruby-cvs:53562] nobu:r46416 (trunk): array.c: fix array size

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Jun 13 13:43:59 JST 2014


nobu	2014-06-13 13:43:57 +0900 (Fri, 13 Jun 2014)

  New Revision: 46416

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46416

  Log:
    array.c: fix array size
    
    * array.c (rb_ary_permutation): `p` is the array of size `r`, as
      commented at permute0().  since `n >= r` here, buffer overflow
      never happened, just reduce unnecessary allocation though.

  Modified files:
    trunk/ChangeLog
    trunk/array.c


More information about the ruby-cvs mailing list