com php-src: Fix bug #71936 (Segmentation fault destroying HTTP_RAW_POST_DATA): NEWS main/php_content_ty pes.c

From: Date: Mon, 20 Jun 2016 16:43:07 +0000
Subject: com php-src: Fix bug #71936 (Segmentation fault destroying HTTP_RAW_POST_DATA): NEWS main/php_content_ty pes.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92523@lists.php.net to get a copy of this message
Commit: 1b4570b79fa9810b171d3fb074c405f2f429ecad Author: Remi Collet <remi@php.net> Mon, 20 Jun 2016 18:43:07 +0200 Parents: b3f3cd590399896a4a70c03e83536b0c950789bc Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1b4570b79fa9810b171d3fb074c405f2f429ecad Log: Fix bug #71936 (Segmentation fault destroying HTTP_RAW_POST_DATA) Bugs: https://bugs.php.net/71936 Changed paths: M NEWS M main/php_content_types.c Diff: diff --git a/NEWS b/NEWS index 91d190d..06e5bb7 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,10 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2016, PHP 5.6.24 +- Core: + . Fix bug #71936 (Segmentation fault destroying HTTP_RAW_POST_DATA). + (mike dot laspina at gmail dot com, Remi) + - bz2: . Fix bug #72447 (Type Confusion in php_bz2_filter_create()). (gogil at stealien dot com). diff --git a/main/php_content_types.c b/main/php_content_types.c index abc796d..6d7d24d 100644 --- a/main/php_content_types.c +++ b/main/php_content_types.c @@ -70,6 +70,9 @@ SAPI_API SAPI_POST_READER_FUNC(php_default_post_reader) (unsigned long) length, INT_MAX); length = INT_MAX; } + if (!data) { + data = STR_EMPTY_ALLOC(); + } SET_VAR_STRINGL("HTTP_RAW_POST_DATA", data, length); sapi_module.sapi_error(E_DEPRECATED,

« previous php.cvs (#92523) next »