]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] http: fix possible incorrect forwarded wrapping chunk size
authorWilly Tarreau <w@1wt.eu>
Tue, 1 Mar 2011 19:04:36 +0000 (20:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 1 Mar 2011 19:04:36 +0000 (20:04 +0100)
commitacd20f80c113087de0385f82b541e80cc789f92a
tree96c83cb566baaf6399fdaaff745e2fa537a027f6
parenta11460540f87607b973df4c3857e018d9a3d80a9
[BUG] http: fix possible incorrect forwarded wrapping chunk size

It seems like if a response message is chunked and the chunk size wraps
at the end of the buffer and the crlf sequence is incomplete, then we
can forward a wrong chunk size due to incorrect handling of the wrapped
size. It seems extremely unlikely to occur on real traffic (no reason to
have half of the CRLF after a chunk) but nothing prevents it from being
possible.

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