BUG/MEDIUM: mux-h1: Report the right amount of data xferred in h1_rcv_buf()
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 25 Feb 2019 14:29:51 +0000 (15:29 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 Feb 2019 13:04:23 +0000 (14:04 +0100)
commitb8d2ee0406666aa21f2906a4921e5e1c7afefb7e
treedb082322aabf580c07699358e521eede4bf4b28b
parent2292edf67c03d22c2d2bbe14fbe29b7e677d49ff
BUG/MEDIUM: mux-h1: Report the right amount of data xferred in h1_rcv_buf()

h1_rcv_buf() must return the amount of data copied in the channel's buffer and
not the number of bytes parsed. Because this value is used during the fast
forwarding to decrement to_forward value, returning the wrong value leads to
undefined behaviours.

This patch must be backported to 1.9.
src/mux_h1.c