1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby
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
..
backward
defines.h * fix ANSI C compliance of r33757 2011-11-15 05:05:35 +00:00
encoding.h * parse.y (rb_check_id_cstr): new function to check if ID is 2012-04-11 13:31:23 +00:00
intern.h * bignum.c (rb_str_to_inum): must be ASCII compatible encoding as 2012-03-23 04:19:24 +00:00
io.h
missing.h * numeric.c (rb_infinity, rb_nan): use union to prevent bus error 2011-10-21 17:34:58 +00:00
oniguruma.h * Merge Onigmo-5.13.1. [ruby-dev:45057] [Feature #5820] 2012-02-17 07:42:23 +00:00
re.h
regex.h
ruby.h * error.c: new functions to deal exceptions with string instances. 2012-02-24 07:39:59 +00:00
st.h * st.c (st_update): pass pointer to key to the callback function. 2012-03-29 14:50:20 +00:00
subst.h * include/ruby/{subst.h,win32.h}, ext/socket/rubysocket.h: revert 2011-12-05 05:29:31 +00:00
util.h
version.h * include/ruby/version.h: RUBY_API_VERSION 2.0.0 2012-01-06 14:13:27 +00:00
vm.h
win32.h * include/ruby/win32.h (FD_SET): change function to macro. 2012-05-08 12:47:25 +00:00