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

From: Date: Tue, 21 Jan 2020 13:57:34 +0000
Subject: Bug #79145 [Opn->Ver]: openssl memory leak
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225026@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: Open +Status: Verified Type: Bug Package: OpenSSL related Operating System: CentOS 7 PHP Version: 7.3.13 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Seems to have been introduced by the fix for bug #61930. Previous Comments: ------------------------------------------------------------------------ [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 (#225026) next »