mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Fixed bug #60206 (possible integer overflow in content_length)
This commit is contained in:
parent
cae2f1381f
commit
d4b90b4788
7 changed files with 9 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue