]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h2/htx: Update data length of the HTX when the cookie list is built
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 17 Jun 2019 09:44:47 +0000 (11:44 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 17 Jun 2019 09:44:51 +0000 (11:44 +0200)
commit0c6de00d7c842a682bba7586ef34fb10f69ec63c
tree7aa5508fb966a48632e99223d8e1d28fc20e8561
parent9dc6b97429ce0f5be142fa9b920bf0ef0a714d73
BUG/MEDIUM: h2/htx: Update data length of the HTX when the cookie list is built

When an H2 request is converted into an HTX message, All cookie headers are
grouped into one, each value separated by a semicolon (;). To do so, we add the
header "cookie" with the first value and then we update the value by appending
other cookies. But during this operation, only the size of the HTX block is
updated. And not the data length of the whole HTX message.

It is an old bug and it seems to work by chance till now. But it may lead to
undefined behaviour by time to time.

This patch must be backported to 2.0 and 1.9
src/h2.c