diff options
author | Dmitry Stogov <dmitry@php.net> | 2011-11-02 08:07:12 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2011-11-02 08:07:12 +0000 |
commit | fbdd2f3e5e17d73dec2278d5552a395393efb6b2 (patch) | |
tree | cb9db01f879598ce73a1c939ff14f603fcc44f6b | |
parent | c2874a8077662e002a970e58f0225d009addeae4 (diff) | |
download | php-git-fbdd2f3e5e17d73dec2278d5552a395393efb6b2.tar.gz |
Prevent possible integer overflow
-rw-r--r-- | ext/soap/php_http.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |