php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80239 imap_rfc822_write_address() leaks memory
Submitted: 2020-10-15 10:43 UTC Modified: 2020-10-15 10:43 UTC
From: cmb@php.net Assigned: cmb (profile)
Status: Closed Package: IMAP related
PHP Version: 7.3Git-2020-10-15 (Git) OS: *
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
29 - 23 = ?
Subscribe to this entry?

 
 [2020-10-15 10:43 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-15 10:43 UTC] cmb@php.net
-Assigned To: +Assigned To: cmb
 [2020-10-15 10:59 UTC] cmb@php.net
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
 [2020-10-15 10:59 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 07:01:28 2024 UTC