Project

General

Profile

Actions

Bug #5062

closed

double free in OpenSSL::Engine

Added by ohai (Ippei Obayashi) over 13 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.4dev (2011-07-20 trunk 32586) [x86_64-linux]
Backport:
[ruby-dev:44173]

Description

以下のコードを実行すると終了時にglibcがdouble freeを検出して停止します。
require 'openssl'
OpenSSL::Engine.load
OpenSSL::Engine.engines
OpenSSL::Engine.engines
停止時の出力を添付します。

ENGINE_get_nextが前に返したengineのref countを下げるのが原因のようで、添付したパッチでとりあえず直ります。


Files

engine_bug.log (5.9 KB) engine_bug.log ohai (Ippei Obayashi), 07/21/2011 02:49 AM
ossl_engine_doublefree.patch (406 Bytes) ossl_engine_doublefree.patch ohai (Ippei Obayashi), 07/21/2011 02:49 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0