Bug #79145 [Ver->Csd]: openssl memory leak

From: Date: Tue, 21 Jan 2020 15:22:47 +0000
Subject: Bug #79145 [Ver->Csd]: openssl memory leak
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225027@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79145&edit=1 ID: 79145 Updated by: cmb@php.net Reported by: adriance at qq dot com Summary: openssl memory leak -Status: Verified +Status: Closed Type: Bug Package: OpenSSL related Operating System: CentOS 7 PHP Version: 7.3.13 Assigned To: cmb Block user comment: N Private report: N New Comment: Automatic comment on behalf of cmbecker69@gmx.de Revision: http://git.php.net/?p=php-src.git;a=commit;h=9eff906a024578f0ea0bf8b4e318544d70074537 Log: Fix #79145: openssl memory leak Previous Comments: ------------------------------------------------------------------------ [2020-01-21 13:57:33] cmb@php.net Seems to have been introduced by the fix for bug #61930. ------------------------------------------------------------------------ [2020-01-21 08:24:59] adriance at qq dot com Description: ------------ 2097152 8392704 14684160 25169920 29364224 31461376 50335744 52432896 54530048 56627200 Test script: --------------- <?php $b = '-----BEGIN PUBLIC KEY----- MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDaFhc31WeskqxwI+Si5R/fZrLK pJOlABiI3RZfKCHJVrXl3IvcHDFM/BHKUJoSi/ee8GS9iw0G4Z1eCzJdthXxHARh j85Q5OliVxOdB1LoTOsOmfFf/fdvpU3DsOWsDKlVrL41MHxXorwrwOiys/r/gv2d C9C4JmhTOjBVAK8SewIDAQAC -----END PUBLIC KEY-----'; for ($i = 0; $i < 1000000; $i++) { if ($i % 100000 == 0) { echo memory_get_usage(true) . PHP_EOL; } $a = openssl_get_publickey($b); openssl_free_key($a); } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79145&edit=1

« previous php.bugs (#225027) next »