Project

General

Profile

Backport #9745

backport r45595

Added by hone (Terence Lee) over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:62046]

Description

Backport memory leak from [Bug #9743]

Associated revisions

Revision 01cf2127
Added by nagachika (Tomoyuki Chikanaga) over 4 years ago

merge revision(s) r45595: [Backport #9743] [Backport #9745]

* ext/openssl/ossl_pkey.c (ossl_pkey_verify): as EVP_VerifyFinal()
  finalizes only a copy of the digest context, the context must be
  cleaned up after initialization by EVP_MD_CTX_cleanup() or a
  memory leak will occur.   [Bug #9743]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 45821
Added by nagachika (Tomoyuki Chikanaga) over 4 years ago

merge revision(s) r45595: [Backport #9743] [Backport #9745]

* ext/openssl/ossl_pkey.c (ossl_pkey_verify): as EVP_VerifyFinal()
  finalizes only a copy of the digest context, the context must be
  cleaned up after initialization by EVP_MD_CTX_cleanup() or a
  memory leak will occur.   [Bug #9743]

History

#1 [ruby-core:62361] Updated by nagachika (Tomoyuki Chikanaga) over 4 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Applied in changeset r45821.


merge revision(s) r45595: [Backport #9743] [Backport #9745]

* ext/openssl/ossl_pkey.c (ossl_pkey_verify): as EVP_VerifyFinal()
  finalizes only a copy of the digest context, the context must be
  cleaned up after initialization by EVP_MD_CTX_cleanup() or a
  memory leak will occur.   [Bug #9743]

Also available in: Atom PDF