1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/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
..
-test- * include/ruby/win32.h (FD_SET): change function to macro. 2012-05-08 12:47:25 +00:00
bigdecimal * ext/bigdecimal/bigdecimal.c (Init_bigdecimal): define IDs before 2012-05-07 02:03:28 +00:00
continuation
coverage
curses
date * ext/date/date_core.c: improving introduction in Date/DateTime doc. 2012-05-08 04:47:35 +00:00
dbm
digest rmd160.c: fix for huge data 2012-05-07 01:27:59 +00:00
dl * ext/dl/cfunc.c (rb_dlcfunc_call): should convert a Bignum value to 2012-04-27 03:36:33 +00:00
etc
fcntl
fiber
fiddle
gdbm
io
json * ext/json/lib/json/generic_object.rb: missing file. 2012-05-07 18:44:36 +00:00
mathn
nkf
objspace
openssl * ext/openssl/ossl_ssl.c (ossl_start_ssl): remove useless rb_sys_fail 2012-05-07 22:46:15 +00:00
pathname
psych * ext/psych/lib/psych/json/yaml_events.rb: implicit styles should not 2012-04-29 19:44:18 +00:00
pty
racc/cparse
readline * ext/readline/readline.c (Readline.special_prefixes=) 2012-05-02 00:47:57 +00:00
ripper * parse.y (assoc, parser_yylex): add syntax to splat keyword hash. 2012-04-28 21:12:05 +00:00
sdbm
socket
stringio
strscan
syck
syslog
tk
win32ole
zlib * ext/zlib/extconf.rb: detect z_crc_t type which will be defined 2012-04-30 11:11:21 +00:00
.document
extmk.rb
Setup
Setup.atheos
Setup.emx
Setup.nt