com php-src: Fixed bug #72852 imap_mail null dereference : ext/imap/php_imap.c

From: Date: Fri, 19 Aug 2016 23:34:46 +0000
Subject: com php-src: Fixed bug #72852 imap_mail null dereference : ext/imap/php_imap.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94001@lists.php.net to get a copy of this message
Commit: 21f08a7488b54e9894b762b690b6674858881252 Author: Anatol Belski <ab@php.net> Sat, 20 Aug 2016 01:34:46 +0200 Parents: 057278b759fde998c62f3a500724824d45ad0290 Branches: PHP-5.6 PHP-7.0 PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=21f08a7488b54e9894b762b690b6674858881252 Log: Fixed bug #72852 imap_mail null dereference Bugs: https://bugs.php.net/72852 Changed paths: M ext/imap/php_imap.c Diff: diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index e91dbfa..d5d3e22 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -3922,7 +3922,7 @@ int _php_imap_mail(char *to, char *subject, char *message, char *headers, char * bt_len++; offset = 0; addr = NULL; - rfc822_parse_adrlist(&addr, tempMailTo, NULL); + rfc822_parse_adrlist(&addr, tempMailTo, "NO HOST"); while (addr) { if (addr->host == NULL || strcmp(addr->host, ERRHOST) == 0) { PHP_IMAP_BAD_DEST; @@ -3951,7 +3951,7 @@ int _php_imap_mail(char *to, char *subject, char *message, char *headers, char * bt_len++; offset = 0; addr = NULL; - rfc822_parse_adrlist(&addr, tempMailTo, NULL); + rfc822_parse_adrlist(&addr, tempMailTo, "NO HOST"); while (addr) { if (addr->host == NULL || strcmp(addr->host, ERRHOST) == 0) { PHP_IMAP_BAD_DEST; @@ -3977,7 +3977,7 @@ int _php_imap_mail(char *to, char *subject, char *message, char *headers, char * bt_len++; offset = 0; addr = NULL; - rfc822_parse_adrlist(&addr, tempMailTo, NULL); + rfc822_parse_adrlist(&addr, tempMailTo, "NO HOST"); while (addr) { if (addr->host == NULL || strcmp(addr->host, ERRHOST) == 0) { PHP_IMAP_BAD_DEST;

« previous php.cvs (#94001) next »