Project

General

Profile

Actions

Bug #12680

closed

Please backport memory leak fixes in ext/openssl

Added by rhenium (Kazuki Yamaguchi) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:76922]

Description

The following methods have an issue of memory leak:

  • OpenSSL::X509::ExtensionFactory#create_ext
  • OpenSSL::X509::ExtensionFactory#config=
  • OpenSSL::X509::Extension#oid=
  • OpenSSL::X509::Extension#value=
  • OpenSSL::X509::Attribute#oid=
  • OpenSSL::X509::Request#set_attributes, #add_attribute
  • OpenSSL::X509::Revoked#set_extensions, #add_extension
  • OpenSSL::PKCS12.create
  • OpenSSL::PKey::EC#export
  • OpenSSL::PKCS7#verify
  • OpenSSL::PKCS7#add_data

They are fixed on GitHub ruby/openssl but they all exist in stable branches.

Here are the fixing commits:

https://github.com/ruby/openssl/compare/3a2840e80d275895523a526ce56e4f6e7b8f9cc4...1e30cd395b14ef46e04bdd9ab72f10067890b265

Or please use the attached patch that applies on top of ruby_2_3 branch if preferred.


Files

patches-ruby-2-3.tar.gz (6.69 KB) patches-ruby-2-3.tar.gz rhenium (Kazuki Yamaguchi), 08/16/2016 08:27 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0