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 | d4b90b47881a8a7738f01c33dc8fe4827d193273 (patch) | |
tree | 215698368a5bb9cf034cbae7a127cb088550dc58 /sapi/apache | |
parent | cae2f1381f0cb110605f39e37b8721fc4794127b (diff) | |
download | php-git-d4b90b47881a8a7738f01c33dc8fe4827d193273.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 16f7756d67..74148be30a 100644 --- a/sapi/apache/mod_php5.c +++ b/sapi/apache/mod_php5.c @@ -529,7 +529,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; |