mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Fixed bug #65818 (Segfault with built-in webserver and chunked transfer encoding)
This commit is contained in:
parent
248afd1c3c
commit
3aaee86ee3
1 changed files with 1 additions and 0 deletions
|
@ -1589,6 +1589,7 @@ static int php_cli_server_client_read_request_on_body(php_http_parser *parser, c
|
|||
}
|
||||
client->request.content_len = 0;
|
||||
}
|
||||
client->request.content = perealloc(client->request.content, client->request.content_len + length, 1);
|
||||
memmove(client->request.content + client->request.content_len, at, length);
|
||||
client->request.content_len += length;
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue