]> granicus.if.org Git - php/commit
Fix #80216: imap_mail_compose() does not validate types/encodings
authorChristoph M. Becker <cmbecker69@gmx.de>
Mon, 12 Oct 2020 12:04:18 +0000 (14:04 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 12 Oct 2020 14:27:49 +0000 (16:27 +0200)
commit73e43b6e19720112f0d10bd988d840e7537055a4
tree1cfc4fbb0d51344bfb473911f036e123516b47e6
parentc1962e900a4ebe74a6e7578e3da75a0931687546
Fix #80216: imap_mail_compose() does not validate types/encodings

We need to check whether the given `type`s and `encoding`s are within
bounds to avoid segfaults and out-of-bound reads.

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