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 | d7d0d0724c5de6397a4c9999568bc1fd7105ef5f (patch) | |
tree | f24a2e34a47d3d6828d8ef6d31605a5feba4fe95 /sapi/apache_hooks/mod_php5.c | |
parent | 64978cb2d9b7fd8721280127630189c126f36784 (diff) | |
download | php-git-d7d0d0724c5de6397a4c9999568bc1fd7105ef5f.tar.gz |
Fixed bug #60206 (possible integer overflow in content_length)
Diffstat (limited to 'sapi/apache_hooks/mod_php5.c')
-rw-r--r-- | sapi/apache_hooks/mod_php5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache_hooks/mod_php5.c b/sapi/apache_hooks/mod_php5.c index b976edf431..0a814df953 100644 --- a/sapi/apache_hooks/mod_php5.c +++ b/sapi/apache_hooks/mod_php5.c @@ -582,7 +582,7 @@ static void init_request_info(TSRMLS_D) SG(request_info).request_method = (char *)r->method; SG(request_info).proto_num = r->proto_num; 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; if (r->headers_in) { |