summaryrefslogtreecommitdiff
path: root/sapi/apache2handler/sapi_apache2.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2011-11-03 07:26:09 +0000
committerXinchen Hui <laruence@php.net>2011-11-03 07:26:09 +0000
commitd7d0d0724c5de6397a4c9999568bc1fd7105ef5f (patch)
treef24a2e34a47d3d6828d8ef6d31605a5feba4fe95 /sapi/apache2handler/sapi_apache2.c
parent64978cb2d9b7fd8721280127630189c126f36784 (diff)
downloadphp-git-d7d0d0724c5de6397a4c9999568bc1fd7105ef5f.tar.gz
Fixed bug #60206 (possible integer overflow in content_length)
Diffstat (limited to 'sapi/apache2handler/sapi_apache2.c')
-rw-r--r--sapi/apache2handler/sapi_apache2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c
index a7f250d512..bb772b24c1 100644
--- a/sapi/apache2handler/sapi_apache2.c
+++ b/sapi/apache2handler/sapi_apache2.c
@@ -483,7 +483,7 @@ static int php_apache_request_ctor(request_rec *r, php_struct *ctx TSRMLS_DC)
r->no_local_copy = 1;
content_length = (char *) apr_table_get(r->headers_in, "Content-Length");
- SG(request_info).content_length = (content_length ? atoi(content_length) : 0);
+ SG(request_info).content_length = (content_length ? atol(content_length) : 0);
apr_table_unset(r->headers_out, "Content-Length");
apr_table_unset(r->headers_out, "Last-Modified");