Bug #80226 [Asn->Csd]: imap_sort() leaks sortpgm memory
| From: | cmb@php.net | Date: | Mon, 12 Oct 2020 21:22:46 +0000 |
| Subject: | Bug #80226 [Asn->Csd]: imap_sort() leaks sortpgm memory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-229587@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80226&edit=1
ID: 80226
Updated by: cmb@php.net
Reported by: cmb@php.net
Summary: imap_sort() leaks sortpgm memory
-Status: Assigned
+Status: Closed
Type: Bug
Package: IMAP related
Operating System: *
PHP Version: 7.3Git-2020-10-12 (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=8488c34fc607353be97e0ebadca3fec9f6373b6d
Log: Fix #80226: imap_sort() leaks sortpgm memory
Previous Comments:
------------------------------------------------------------------------
[2020-10-12 15:46:10] cmb@php.net
Description:
------------
When imap_sort() is called with valid arguments, it leaks the
sortpgm memory.
Test script:
---------------
<?php
$stream = imap_open($mailbox, $username, $password);
imap_sort($stream, SORTFROM, 0);
?>
Expected result:
----------------
no leaks
Actual result:
--------------
Detected memory leaks!
Dumping objects ->
{45271} normal block at 0x000001F1F8ED9C80, 40 bytes long.
Data: < > 00 00 00 00 02 00 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=80226&edit=1