|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80213 imap_mail_compose() segfaults on certain $bodies
Submitted: 2020-10-10 11:59 UTC Modified: 2020-10-10 11:59 UTC
From: Assigned: cmb (profile)
Status: Closed Package: IMAP related
PHP Version: 7.3Git-2020-10-10 (Git) OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2020-10-10 11:59 UTC]
The 'type.parameters' and 'disposition' elements of a body are
supposed to hold associative arrays.  Passing non associative
arrays leads to a segfault.

Test script:
$envelope = [];
$body = [[
    'type.parameters' => ['param'],
    'disposition' => ['disp'],
], [
    'type.parameters' => ['param'],
    'disposition' => ['disp'],
imap_mail_compose($envelope, $body);
echo "done\n";

Expected result:

Actual result:


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-10-10 11:59 UTC]
-Assigned To: +Assigned To: cmb
 [2020-10-10 14:52 UTC]
The following pull request has been associated:

Patch Name: Fix #80213: imap_mail_compose() segfaults on certain $bodies
On GitHub:
 [2020-10-10 17:21 UTC]
Automatic comment on behalf of
Log: Fix #80213: imap_mail_compose() segfaults on certain $bodies
 [2020-10-10 17:21 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Apr 13 05:01:24 2021 UTC