]> granicus.if.org Git - php/commit
Fix #80242: imap_mail_compose() segfaults for multipart with rfc822
authorChristoph M. Becker <cmbecker69@gmx.de>
Tue, 20 Oct 2020 14:38:16 +0000 (16:38 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Tue, 20 Oct 2020 16:58:45 +0000 (18:58 +0200)
commit315b95b0654fca116d6db0f11dc22151ac139988
tree5dffcd58e8793cd86757449e2e4d200c093bda5a
parentde58fb34c9dad0ce598eb53ee942628fd7c7b14a
Fix #80242: imap_mail_compose() segfaults for multipart with rfc822

libc-client expects `TYPEMESSAGE` with an explicit subtype of `RFC822`
to have a `nested.msg` (otherwise there will be a segfault during
free), but not to have any `contents.text.data` (this will leak
otherwise).

Closes GH-6345.
NEWS
ext/imap/php_imap.c
ext/imap/tests/bug80242.phpt [new file with mode: 0644]