]> granicus.if.org Git - php/commitdiff
- fix bug #54061, memory leak in openssl_decrypt
authorPierre Joye <pajoye@php.net>
Mon, 21 Feb 2011 12:47:38 +0000 (12:47 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 21 Feb 2011 12:47:38 +0000 (12:47 +0000)
NEWS
ext/openssl/openssl.c

diff --git a/NEWS b/NEWS
index 568fc5798d7a5f870f65d390e1be8d3f5adaf250..fcc0e2d59638a79b102fa226eec634ac08e08e54 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -8,8 +8,10 @@
 - Exif extension:
   . Fixed bug #54002 (crash on crafted tag, reported by Luca Carettoni). (Pierre)
     (CVE-2011-0708)
+
 - OpenSSL extension:
   . Fixed bug #54060 (Memory leaks when openssl_encrypt). (Pierre)
+  . Fixed bug #54061 (Memory leaks when openssl_decrypt). (Pierre)
 
 - SPL extension:
   . Fixed memory leak in DirectoryIterator::getExtension() and 
index 5f86bb8f4edfcf81fd6f2b3ac1b69bdfde67694f..bc644a709eb1563e63dc8bd5c29eb776e6d0c14a 100644 (file)
@@ -4804,6 +4804,7 @@ PHP_FUNCTION(openssl_decrypt)
        if (base64_str) {
                efree(base64_str);
        }
+       EVP_CIPHER_CTX_cleanup(&cipher_ctx);
 }
 /* }}} */