summaryrefslogtreecommitdiff
path: root/ext/soap/php_http.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2011-11-02 08:07:12 (GMT)
committerDmitry Stogov <dmitry@php.net>2011-11-02 08:07:12 (GMT)
commitfd28dfc569ecfde6fe795d5a9c4c4983b13f6b9d (patch)
tree60a1db5b8bfed06987cafb39dfab221735cfddff /ext/soap/php_http.c
parent294c28f88530bda99a5e68ac856daf0f8390395b (diff)
downloadphp-fd28dfc569ecfde6fe795d5a9c4c4983b13f6b9d.tar.gz
Prevent possible integer overflow
Diffstat (limited to 'ext/soap/php_http.c')
-rw-r--r--ext/soap/php_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c
index 7a4bc39..1ca0a16 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);