From: Duy Nguyen Date: Sat, 04 Aug 2018 06:34:08 GMT Subject: Re: [PATCH v9 2/3] http-backend: respect CONTENT_LENGTH as specified by rfc3875 Message-ID: In-Reply-To: <20180727034859.15769-3-max@max630.net> On Fri, Jul 27, 2018 at 5:50 AM Max Kirillov wrote: > -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