From fd28dfc569ecfde6fe795d5a9c4c4983b13f6b9d Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 2 Nov 2011 08:07:12 +0000 Subject: [PATCH] Prevent possible integer overflow --- ext/soap/php_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.1