Actions
Bug #12680
closedPlease backport memory leak fixes in ext/openssl
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:
Or please use the attached patch that applies on top of ruby_2_3 branch if preferred.
Files
Updated by nagachika (Tomoyuki Chikanaga) over 7 years ago
- Backport changed from 2.1: UNKNOWN, 2.2: REQUIRED, 2.3: REQUIRED to 2.1: UNKNOWN, 2.2: REQUIRED, 2.3: DONE
Thank you for your great work!
The patches are applied on ruby_2_3 branch at r56018.
Updated by rhenium (Kazuki Yamaguchi) over 7 years ago
nagachika-san:
I'm so sorry, the third one of the patches was broken. Could you backport this as well?
https://github.com/ruby/openssl/commit/e76f076f093efb93dabf2cb042c527500f956061
Updated by nagachika (Tomoyuki Chikanaga) over 7 years ago
- Backport changed from 2.1: UNKNOWN, 2.2: REQUIRED, 2.3: DONE to 2.1: UNKNOWN, 2.2: REQUIRED, 2.3: REQUIRED
Updated by nagachika (Tomoyuki Chikanaga) over 7 years ago
- Backport changed from 2.1: UNKNOWN, 2.2: REQUIRED, 2.3: REQUIRED to 2.1: UNKNOWN, 2.2: REQUIRED, 2.3: DONE
Actions
Like0
Like0Like0Like0Like0