php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80220 imap_mail_compose() may leak memory
Submitted: 2020-10-12 08:27 UTC Modified: 2020-10-12 09:01 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: [email protected] Assigned: cmb (profile)
Status: Closed Package: IMAP related
PHP Version: 7.3Git-2020-10-12 (Git) OS: *
Private report: No CVE-ID: None
 [2020-10-12 08:27 UTC] [email protected]
Description:
------------
If imap_mail_compose() is called with multiple bodies, but the
first body's type != TYPEMULTIPART, the function leaks memory.
This can be seen when running ext/imap/tests/bug80215.php with a
leak checker.


Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-12 08:46 UTC] [email protected]
The following pull request has been associated:

Patch Name: Fix #80220: imap_mail_compose() may leak memory
On GitHub:  https://github.com/php/php-src/pull/6321
Patch:      https://github.com/php/php-src/pull/6321.patch
 [2020-10-12 09:01 UTC] [email protected]
-Assigned To: +Assigned To: cmb
 [2020-10-12 11:35 UTC] [email protected]
Automatic comment on behalf of [email protected]
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0d022ddf03c5fabaaa22e486d1e4a367ed9170a7
Log: Fix #80220: imap_mail_compose() may leak memory
 [2020-10-12 11:35 UTC] [email protected]
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jun 01 02:01:27 2025 UTC