diff options
author | Stanislav Malyshev <stas@php.net> | 2011-10-15 23:57:33 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2011-10-15 23:57:33 +0000 |
commit | 0a1cc5f01cbcae5f1ed9183387d0b37e70210b68 (patch) | |
tree | 67d6fb463ea56f44290b5f08b9d487a3ca60c02b /ext/soap/php_http.c | |
parent | 1551cc62dba413ac8f1ea3de3b9f0a5537881598 (diff) | |
download | php-git-0a1cc5f01cbcae5f1ed9183387d0b37e70210b68.tar.gz |
fix potential 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 1f2030189a..7a4bc39da4 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -1386,7 +1386,7 @@ static int get_http_body(php_stream *stream, int close, char *headers, char **r if (header_length < 0) { return FALSE; } - http_buf = emalloc(header_length + 1); + http_buf = safe_emalloc(1, header_length, 1); while (http_buf_size < header_length) { int len_read = php_stream_read(stream, http_buf + http_buf_size, header_length - http_buf_size); if (len_read <= 0) { |