com php-src: Added NULL byte protection to exec, system and passthru.: NEWS ext/standard/exec.c

From: Date: Fri, 13 Feb 2015 20:37:56 +0000
Subject: com php-src: Added NULL byte protection to exec, system and passthru.: NEWS ext/standard/exec.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84873@lists.php.net to get a copy of this message
Commit: 7d0e3c01e6bee0cd9a3aa1f2ed0f4b7cc2b2afd0 Author: Yasuo Ohgaki <yohgaki@php.net> Sat, 14 Feb 2015 05:37:56 +0900 Parents: 096fb06dab980a68b2eaae0b9e516faffe8579f9 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7d0e3c01e6bee0cd9a3aa1f2ed0f4b7cc2b2afd0 Log: Added NULL byte protection to exec, system and passthru. Changed paths: M NEWS M ext/standard/exec.c Diff: diff --git a/NEWS b/NEWS index ec59791..fdbd25b 100644 --- a/NEWS +++ b/NEWS @@ -46,6 +46,7 @@ . Removed dl() function on fpm-fcgi. (Nikita) . Removed support for hexadecimal numeric strings. (Nikita) . Removed obsolete extensions and SAPIs. See the full list in UPGRADING. (Anatol) + . Added NULL byte protection to exec, system and passthru. (Yasuo) - Curl: . Fixed bug #68937 (Segfault in curl_multi_exec). (Laruence) diff --git a/ext/standard/exec.c b/ext/standard/exec.c index a727573..a98751e 100644 --- a/ext/standard/exec.c +++ b/ext/standard/exec.c @@ -190,7 +190,7 @@ static void php_exec_ex(INTERNAL_FUNCTION_PARAMETERS, int mode) /* {{{ */ RETURN_FALSE; } if (strlen(cmd) != cmd_len) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "NULL byte detected. Possible attack"); + php_error_docref(NULL, E_WARNING, "NULL byte detected. Possible attack"); RETURN_FALSE; }

« previous php.cvs (#84873) next »