- Fixed bug #65818 (Segfault with built-in webserver and chunked transfer encoding)

This commit is contained in:
Felipe Pena 2013-10-05 12:52:55 -03:00
parent 248afd1c3c
commit 3aaee86ee3

View file

@ -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;