Bug #80239 [Asn->Csd]: imap_rfc822_write_address() leaks memory

From: Date: Thu, 15 Oct 2020 10:59:13 +0000
Subject: Bug #80239 [Asn->Csd]: imap_rfc822_write_address() leaks memory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229636@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80239&edit=1 ID: 80239 Updated by: cmb@php.net Reported by: cmb@php.net Summary: imap_rfc822_write_address() leaks memory -Status: Assigned +Status: Closed Type: Bug Package: IMAP related Operating System: * PHP Version: 7.3Git-2020-10-15 (Git) 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=5941b30bb889afcdd7684f9e0ce05ce72bb8256b Log: Fix #80239: imap_rfc822_write_address() leaks memory Previous Comments: ------------------------------------------------------------------------ [2020-10-15 10:43:08] cmb@php.net Description: ------------ imap_rfc822_write_address() unconditionally leaks memory. Test script: --------------- <?php imap_rfc822_write_address('me', 'example.com', 'My Name'); ?> Expected result: ---------------- Actual result: -------------- Detected memory leaks! Dumping objects -> {45185} normal block at 0x0000022C26FCA820, 8 bytes long. Data: <My Name > 4D 79 20 4E 61 6D 65 00 {45184} normal block at 0x0000022C26FC9420, 12 bytes long. Data: <example.com > 65 78 61 6D 70 6C 65 2E 63 6F 6D 00 {45183} normal block at 0x0000022C2706F730, 3 bytes long. Data: <me > 6D 65 00 {45182} normal block at 0x0000022C2701EE20, 64 bytes long. Data: < &, > 20 A8 FC 26 2C 02 00 00 00 00 00 00 00 00 00 00 Object dump complete. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80239&edit=1

« previous php.bugs (#229636) next »