1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/-ext-
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
exception * error.c (rb_enc_raise): new function to raise an exception with 2012-04-10 10:07:07 +00:00
funcall
iter * vm.c (rb_iter_break_value): new function to break a block with 2012-01-24 05:20:48 +00:00
load
num2int num2ll and num2ull 2012-03-18 15:21:04 +00:00
old_thread_select * test/-ext-/old_thread_select/test_old_thread_select.rb: 2012-01-07 16:22:47 +00:00
path_to_class * variable.c (rb_path2class): don't raise NameError when the middle 2011-11-30 14:44:06 +00:00
st * st.c (st_update): add existing parameter to the callback function. 2012-03-29 07:36:12 +00:00
string * test/ruby/envutil.rb (assert_no_memory_leak): new assertion to 2012-02-09 15:47:11 +00:00
symbol On some platforms, object_id can be negative value like NetBSD. 2011-11-01 00:42:41 +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/bigdecimal/README: Update redmine.ruby-lang.org to bugs.ruby-lang.org 2011-12-20 16:09:17 +00:00
win32 * include/ruby/win32.h (FD_SET): change function to macro. 2012-05-08 12:47:25 +00:00
test_bug-3571.rb
test_bug-3662.rb