Bug #80220 [PATCH]: imap_mail_compose() may leak memory

From: Date: Mon, 12 Oct 2020 08:46:02 +0000
Subject: Bug #80220 [PATCH]: imap_mail_compose() may leak memory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229552@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80220&edit=1

 ID:                 80220
 Patch added by:     cmb@php.net
 Reported by:        cmb@php.net
 Summary:            imap_mail_compose() may leak memory
 Status:             Open
 Type:               Bug
 Package:            IMAP related
 Operating System:   *
 PHP Version:        7.3Git-2020-10-12 (Git)
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[2020-10-12 08:27:30] cmb@php.net

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.



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=80220&edit=1


Thread (3 messages)

« previous php.bugs (#229552) next »