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 | 19a0522a428ae714598a1c08255e4fae54817a4f (patch) | |
tree | a7cd0586e9d98735609e25c475dcd99a1ab0d806 /ext/soap/php_http.c | |
parent | fe5f6f918867eae765c422ef2c0f16fc0e670a9a (diff) | |
download | php-git-19a0522a428ae714598a1c08255e4fae54817a4f.tar.gz |
Prevent possible integer overflow
Diffstat (limited to 'ext/soap/php_http.c')
-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 1e1263e197..59abbc4792 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 = emalloc(header_length + 1); |