* ext/etc/etc.c (setup_passwd): pass 0 as VALUE to rb_struct_new to

prevent segfault if the compiler passes it as a 32 bit integer on
  a 64 bit ruby

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
charliesome 2013-06-22 05:35:23 +00:00
Родитель 042fe1ea91
Коммит 1a2c400273
2 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Sat Jun 22 14:31:00 2013 Charlie Somerville <charliesome@ruby-lang.org>
* ext/etc/etc.c (setup_passwd): pass 0 as VALUE to rb_struct_new to
prevent segfault if the compiler passes it as a 32 bit integer on
a 64 bit ruby
Sat Jun 22 13:47:13 2013 Tanaka Akira <akr@fsij.org> Sat Jun 22 13:47:13 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (bary_pack): MEMZERO can be used even if nails is not zero. * bignum.c (bary_pack): MEMZERO can be used even if nails is not zero.

Просмотреть файл

@ -116,7 +116,7 @@ setup_passwd(struct passwd *pwd)
#ifdef HAVE_STRUCT_PASSWD_PW_EXPIRE #ifdef HAVE_STRUCT_PASSWD_PW_EXPIRE
INT2NUM(pwd->pw_expire), INT2NUM(pwd->pw_expire),
#endif #endif
0 /*dummy*/ (VALUE)0 /*dummy*/
); );
} }
#endif #endif