]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http: wait for the exact amount of body bytes in wait_for_request_body
authorWilly Tarreau <w@1wt.eu>
Fri, 1 May 2015 21:05:14 +0000 (23:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 May 2015 21:24:32 +0000 (23:24 +0200)
commite115b49c399a0fd9cfa07ae41531549144ced9b0
treed30df7c3a54c27bccc3bfe55a3fb79b9f4922d65
parent30fe8189794114e66337e7ad5e167f386e57e257
BUG/MEDIUM: http: wait for the exact amount of body bytes in wait_for_request_body

Due to the fact that we were still considering only msg->sov for the
first byte of data after calling http_parse_chunk_size(), we used to
miscompute the input data size and to count the CRLF and the chunk size
as part of the input data. The effect is that it was possible to release
the processing with 3 or 4 missing bytes, especially if they're typed by
hand during debugging sessions. This can cause the stats page to return
some errors in admin mode, and the url_param balance algorithm to fail
to properly hash a body input.

This fix must be backported to 1.5.
src/proto_http.c