1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext
Aaron Patterson 35b9d8d393 [ruby/openssl] Raise an exception if the IO object passed to SSLSocket isn't a file
SSLSocket#connect eventually calls `GetOpenFile` in order to get the
underlying file descriptor for the IO object passed in on
initialization.  `GetOpenFile` assumes that the Ruby object passed in is
a T_FILE object and just casts it to a T_FILE without any checks.  If
you pass an object that *isn't* a T_FILE to that function, the program
will segv.

Since we assume the IO object is a file in the `connect` method, this
commit adds a `CheckType` in the initialize method to ensure that the IO
object is actually a T_FILE.  If the object *isn't* a T_FILE, this class
will segv on `connect`, so I think this is a backwards compatible
change.

https://github.com/ruby/openssl/commit/919fa44ec2
2021-10-23 13:38:40 +09:00
..
-test- ruby tool/update-deps --fix 2021-10-05 14:18:23 +09:00
bigdecimal Import bigdecimal-3.1.0.dev 2021-10-22 15:53:49 +09:00
cgi/escape ruby tool/update-deps --fix 2021-10-05 14:18:23 +09:00
continuation dependency updates 2021-04-13 14:30:21 +09:00
coverage Tie lifetime of uJIT blocks to iseqs 2021-10-20 18:19:29 -04:00
date [ruby/date] Bump up date version to 3.2.0 2021-10-14 21:15:57 +09:00
digest Removed redundant digest namespace 2021-10-14 14:07:50 +09:00
etc [ruby/etc] Bump up etc version to 1.3.0 2021-10-19 20:55:33 +09:00
fcntl [ruby/fcntl] Bump up fcntl version to 1.0.1 2021-10-14 17:18:21 +09:00
fiddle ruby tool/update-deps --fix 2021-10-05 14:18:23 +09:00
io [ruby/io-wait] Bump up io-wait version to 0.2.0 2021-10-21 20:54:20 +09:00
json [flori/json] Bump up json version to 2.6.0 2021-10-14 17:04:37 +09:00
monitor Distinguish signal and timeout [Bug #16608] 2021-07-25 13:09:03 -07:00
nkf [ruby/nkf] Bump up nkf version to 0.1.1 2021-10-14 20:29:27 +09:00
objspace Tie lifetime of uJIT blocks to iseqs 2021-10-20 18:19:29 -04:00
openssl [ruby/openssl] Raise an exception if the IO object passed to SSLSocket isn't a file 2021-10-23 13:38:40 +09:00
pathname [ruby/pathname] Bump up pathname version to 0.2.0 2021-10-14 21:08:03 +09:00
psych [ruby/psych] Bump up psych version to 4.0.2 2021-10-21 13:49:20 +09:00
pty ruby tool/update-deps --fix 2021-10-05 14:18:23 +09:00
racc/cparse [ruby/racc] Add missing check for rb_block_call() 2021-07-18 20:38:34 +09:00
rbconfig/sizeof dependency updates 2021-04-13 14:30:21 +09:00
readline Bump up readline-ext version to 0.1.3 2021-10-21 21:17:45 +09:00
ripper ruby tool/update-deps --fix 2021-10-05 14:18:23 +09:00
rubyvm
socket Prefer the reentrant versions of gmtime and localtime 2021-10-14 23:44:15 +09:00
stringio [ruby/stringio] Bump up stringio version to 3.0.1 2021-10-21 20:53:53 +09:00
strscan ruby tool/update-deps --fix 2021-10-05 14:18:23 +09:00
syslog dependency updates 2021-04-13 14:30:21 +09:00
win32 Fix some typos by spell checker 2021-04-26 10:07:41 +09:00
win32ole Fix _MSC_VER warnings 2021-06-03 00:07:25 +09:00
zlib [ruby/zlib] Bump up zlib version to 2.1.1 2021-10-19 20:28:57 +09:00
.document
extmk.rb transcode-tblgen.rb: make silent a little when just -v 2020-12-29 17:45:19 +09:00
Setup
Setup.atheos
Setup.nt