From: Hiroshi Nakamura Date: 2011-07-13T16:28:30+09:00 Subject: [ruby-dev:44097] [Ruby 1.9 - Bug #4445] ext/openssl の verify_callback が rb_protect で保護されていない Issue #4445 has been updated by Hiroshi Nakamura. Martin Bosslet wrote: > Sure - if you feel it's related to the other two issues then you are clearly in a better position to design this properly. Should I look into #4923 and #4961 instead? Or are there any other urgencies where I could help? OK, I take this. Do you think you can handle #4961? I don't think it's a release blocker since we just added tests which does not run with OpenSSL 0.9.7. It has not yet worked ever. But there could be a chance to find a easy way to fix the bug. ---------------------------------------- Bug #4445: ext/openssl の verify_callback が rb_protect で保護されていない http://redmine.ruby-lang.org/issues/4445 Author: Ippei Obayashi Status: Assigned Priority: Normal Assignee: Hiroshi Nakamura Category: ext Target version: 1.9.3 ruby -v: ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux] =begin openssl では 証明書の検証に付加的な機能を付けるための callback を設定できます。これをrubyから利用できるようになっていますが rb_protect を使っていないため、openssl ライブラリ内部を飛び越えて 例外が飛ぶようになってしまう状態です。 現在ではSEGVが発生する等の問題は見つかってはいませんがメモリリークなど 起きている可能性が高いです。 とりあえず大域脱出を止めるパッチを添付します。例外を適当な場所で再送するべきかもしれませんが それはしていません。 =end -- http://redmine.ruby-lang.org