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 * ext/-test-/array/resize/resize.c (Init_resize): renamed method 2011-01-05 20:47:01 +00:00
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 * include/ruby/ruby.h (rb_funcall_passing_block): add prototype. 2011-03-17 15:54:22 +00:00
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 * ext/-test-/old_thread_select/extconf.rb: ignore deprecated 2011-11-08 09:02:59 +00:00
path_to_class Fix invalid test extension. 2011-12-08 10:27:01 +00:00
st * hash.c: remove unnecessary checks for Qundef in hash iterations. 2012-03-31 04:20:45 +00:00
string * string.c (rb_str_modify_expand): fix memory leak. 2012-02-08 13:30:04 +00:00
symbol * vm_eval.c (make_no_method_execption): extract from 2011-10-06 07:29:33 +00:00
typeddata * error.c (rb_check_typeddata): refine error message with 2011-12-15 05:33:34 +00:00
wait_for_single_fd * ext/-test-/wait_for_single_fd: New. for testing 2011-05-04 09:50:27 +00:00
win32 * include/ruby/win32.h (FD_SET): change function to macro. 2012-05-08 12:47:25 +00:00