From: Anatol Belski Date: Wed, 26 Aug 2015 12:18:42 +0000 (+0200) Subject: add range check to ext/soap X-Git-Tag: php-7.0.0RC2~2^2~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=150dead2d93435b7d097981dad484ad9a42df901;p=php add range check to ext/soap --- diff --git a/ext/soap/soap.c b/ext/soap/soap.c index 0216de39f2..3c4a86c01e 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -1539,6 +1539,11 @@ PHP_METHOD(SoapServer, handle) return; } + if (ZEND_NUM_ARGS() > 0 && ZEND_SIZE_T_INT_OVFL(arg_len)) { + soap_server_fault("Server", "Input string is too long", NULL, NULL, NULL); + return; + } + if (SG(request_info).request_method && strcmp(SG(request_info).request_method, "GET") == 0 && SG(request_info).query_string &&