]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h2: always compare content-length to the sum of DATA frames
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2019 10:49:37 +0000 (11:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2019 18:45:27 +0000 (19:45 +0100)
commit1915ca273832ba542d72eb0645dd7ccb6d5b945f
tree76b047e0cfba5cd5c12298659c1e05465d7afa57
parent4790f7c90743ce52021373c5567d78c32c42d972
BUG/MINOR: mux-h2: always compare content-length to the sum of DATA frames

This is mandated by RFC7541#8.1.2.6. Till now we didn't have a copy of
the content-length header field. But now that it's already parsed, it's
easy to add the check.

The reg-test was updated to match the new behaviour as the previous one
expected unadvertised data to be silently discarded.

This should be backported to 1.9 along with previous patch (MEDIUM: h2:
always parse and deduplicate the content-length header) after it has got
a bit more exposure.
reg-tests/http-messaging/h00002.vtc
src/mux_h2.c