[ruby-cvs:53595] nagachika:r46449 (ruby_2_1): merge revision(s) r45287, r45288, r45289, r45290: [Backport #9600]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Tue Jun 17 00:33:12 JST 2014


nagachika	2014-06-17 00:33:10 +0900 (Tue, 17 Jun 2014)

  New Revision: 46449

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

  Log:
    merge revision(s) r45287,r45288,r45289,r45290: [Backport #9600]
    
    process.c: tmp buffer instead of alloca
    
    * process.c (OBJ2UID1, OBJ2GID1): separate from OBJ2UID and
      OBJ2GID respectively, need given buffers.
    
    * process.c (OBJ2UID, OBJ2GID): no longer need PREPARE_GETPWNAM
      and PREPARE_GETGRNAM.
    
    * process.c (obj2uid, obj2gid): use tmp buffer instead of alloca
      to get rid of potential stack overflow.
    * process.c (obj2uid, obj2gid): now getpwnam_r() and getgrnam_r()
      may need larger buffers than sysconf values, so retry with
      expanding the buffer when ERANGE is returned.
      [ruby-core:61325] [Bug #9600]

  Modified directories:
    branches/ruby_2_1/
  Modified files:
    branches/ruby_2_1/ChangeLog
    branches/ruby_2_1/process.c
    branches/ruby_2_1/version.h


More information about the ruby-cvs mailing list