[ruby-cvs:60389] normal:r53231 (trunk): avoid rb_bug on BasicSocket.for_fd(-1)

normal at ruby-lang.org normal at ruby-lang.org
Tue Dec 22 03:57:51 JST 2015


normal	2015-12-22 03:57:50 +0900 (Tue, 22 Dec 2015)

  New Revision: 53231

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

  Log:
    avoid rb_bug on BasicSocket.for_fd(-1)
    
    * ext/socket/init.c (rsock_init_sock): check FD after validating
    * test/socket/test_basicsocket.rb (test_for_fd): new
      [ruby-core:72418] [Bug #11854]

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/init.c
    trunk/test/socket/test_basicsocket.rb


More information about the ruby-cvs mailing list