diff options
author | Xinchen Hui <laruence@php.net> | 2011-11-03 07:26:09 +0000 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2011-11-03 07:26:09 +0000 |
commit | a391535e00eccc508d3d10d529f0b803a0425e8c (patch) | |
tree | a4e96f88a40ca9abe4169c2ae02c01d021e56741 /sapi/apache | |
parent | 6c01aacc0d971fc35536268fb0f7b810900fa4c6 (diff) | |
download | php-git-a391535e00eccc508d3d10d529f0b803a0425e8c.tar.gz |
Fixed bug #60206 (possible integer overflow in content_length)
Diffstat (limited to 'sapi/apache')
-rw-r--r-- | sapi/apache/mod_php5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache/mod_php5.c b/sapi/apache/mod_php5.c index 3ee213ba4a..0d9bd5cf24 100644 --- a/sapi/apache/mod_php5.c +++ b/sapi/apache/mod_php5.c @@ -533,7 +533,7 @@ static void init_request_info(TSRMLS_D) SG(request_info).request_uri = r->uri; SG(request_info).request_method = (char *)r->method; SG(request_info).content_type = (char *) table_get(r->subprocess_env, "CONTENT_TYPE"); - SG(request_info).content_length = (content_length ? atoi(content_length) : 0); + SG(request_info).content_length = (content_length ? atol(content_length) : 0); SG(sapi_headers).http_response_code = r->status; SG(request_info).proto_num = r->proto_num; |