1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/-test-
shirosaki 5ccee663e9 * include/ruby/win32.h (FD_SET): change function to macro.
To avoid buffer overflow when smaller FD_SETSISE is used in ext
  libraries.

* win32/win32.c (rb_w32_fdset): this function is not used anymore.
  But we leave this for compatibility.

* win32/win32.c (rb_w32_select_with_thread): fix SEGV when smaller
  FD_SETSISE is used in ext libraries. Dereference of fd_set pointer
  causes SEGV.

* test/-ext-/win32/test_fd_setsize.rb(TestFdSetSize): add tests for
  above.
* ext/-test-/win32/fd_setsize/depend: ditto.
* ext/-test-/win32/fd_setsize/extconf.rb: ditto.
* ext/-test-/win32/fd_setsize/fd_setsize.c: ditto.

  [ruby-core:44588] [Bug #6352]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-08 12:47:25 +00:00
..
array/resize
bug-3571
bug-3662
exception * error.c (rb_enc_raise): new function to raise an exception with 2012-04-10 10:07:07 +00:00
funcall
iter * variable.c (trace_ev): Removed "not reached" comment as this line is 2012-04-14 00:36:26 +00:00
load/dot.dot
num2int num2ll and num2ull 2012-03-18 15:21:04 +00:00
old_thread_select
path_to_class
st * hash.c: remove unnecessary checks for Qundef in hash iterations. 2012-03-31 04:20:45 +00:00
string
symbol
typeddata
wait_for_single_fd
win32 * include/ruby/win32.h (FD_SET): change function to macro. 2012-05-08 12:47:25 +00:00