Re: [PATCH v9 2/3] http-backend: respect CONTENT_LENGTH as specified by rfc3875
On Fri, Jul 27, 2018 at 5:50 AM Max Kirillov <max@max630.net> wrote:
Show 10 quoted lines
> -static void inflate_request(const char *prog_name, int out, int buffer_input)
> +static ssize_t read_request_fixed_len(int fd, ssize_t req_len, unsigned char **out)
> +{
> + unsigned char *buf = NULL;
> + ssize_t cnt = 0;
> +
> + if (max_request_buffer < req_len) {
> + die("request was larger than our maximum size (%lu): "
> + "%" PRIuMAX "; try setting GIT_HTTP_MAX_REQUEST_BUFFER",
> + max_request_buffer, (uintmax_t)req_len);Please mark these strings for translation with _().
--
Duy