com php-src: Fixed bug #71397 (mb_send_mail segmentatio n fault): NEWS ext/mbstring/mbstring.c

From: Date: Mon, 18 Jan 2016 00:23:20 +0000
Subject: com php-src: Fixed bug #71397 (mb_send_mail segmentatio n fault): NEWS ext/mbstring/mbstring.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-90670@lists.php.net to get a copy of this message
Commit: ff10dceff87f4c94c55e6bc2e962f4bb3d66feb4 Author: Yasuo Ohgaki <yohgaki@php.net> Mon, 18 Jan 2016 09:22:04 +0900 Parents: 8052df8110cfa1dce89c962ef9f8f632a26fbcc7 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ff10dceff87f4c94c55e6bc2e962f4bb3d66feb4 Log: Fixed bug #71397 (mb_send_mail segmentation fault) Bugs: https://bugs.php.net/71397 Changed paths: M NEWS M ext/mbstring/mbstring.c Diff: diff --git a/NEWS b/NEWS index d18dada..e25d793 100644 --- a/NEWS +++ b/NEWS @@ -34,6 +34,9 @@ PHP NEWS . Fixed bug #71249 (ldap_mod_replace/ldap_mod_add store value as string "Array"). (Laruence) +- mbsgring: + .. Fixed bug #71397 (mb_send_mail segmentation fault). (Yasuo) + - SOAP: . Fixed bug #70979 (crash with bad soap request). (Anatol) diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index 4fdb3d5..be4b1e4 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -4145,7 +4145,7 @@ PHP_FUNCTION(mb_send_mail) suppressed_hdrs.cnt_type = 1; } - if ((s = zend_hash_str_find_ptr(&ht_headers, "CONTENT-TRANSFER-ENCODING", sizeof("CONTENT-TRANSFER-ENCODING") - 1))) { + if ((s = zend_hash_str_find(&ht_headers, "CONTENT-TRANSFER-ENCODING", sizeof("CONTENT-TRANSFER-ENCODING") - 1))) { enum mbfl_no_encoding _body_enc; _body_enc = mbfl_name2no_encoding(Z_STRVAL_P(s));

« previous php.cvs (#90670) next »