From: Martin Bosslet Date: 2011-07-12T23:34:59+09:00 Subject: [ruby-dev:44092] [Ruby 1.9 - Bug #4445] ext/openssl の verify_callback が rb_protect で保護されていない Issue #4445 has been updated by Martin Bosslet. Assignee changed from Martin Bosslet to Hiroshi Nakamura Hiroshi Nakamura wrote: > Martin, how's the status? Can I take over this issue again? I think #4875 and #4611 relates to this issue. 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? ---------------------------------------- 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