php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80226 imap_sort() leaks sortpgm memory
Submitted: 2020-10-12 15:46 UTC Modified: 2020-10-12 15:46 UTC
From: cmb@php.net Assigned: cmb (profile)
Status: Closed Package: IMAP related
PHP Version: 7.3Git-2020-10-12 (Git) OS: *
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cmb@php.net
New email:
PHP Version: OS:

 

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


Patches

Pull Requests

History

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