From: Dmitry Stogov Date: Wed, 2 Nov 2011 08:07:12 +0000 (+0000) Subject: Prevent possible integer overflow X-Git-Tag: php-5.4.0RC1~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd28dfc569ecfde6fe795d5a9c4c4983b13f6b9d;p=php Prevent possible integer overflow --- diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index 7a4bc39da4..1ca0a1610b 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -1383,7 +1383,7 @@ static int get_http_body(php_stream *stream, int close, char *headers, char **r } } else if (header_length) { - if (header_length < 0) { + if (header_length < 0 || header_length >= INT_MAX) { return FALSE; } http_buf = safe_emalloc(1, header_length, 1);