mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
Fixed bug #60206 (possible integer overflow in content_length)
This commit is contained in:
parent
6c01aacc0d
commit
a391535e00
7 changed files with 9 additions and 6 deletions
|
@ -484,7 +484,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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue