]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h2: Remove the padding length when a DATA frame size is checked
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 19 Jun 2019 07:25:58 +0000 (09:25 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 19 Jun 2019 08:06:31 +0000 (10:06 +0200)
commit4f09ec812adbd9336cddc054660a7fb5cd54b459
treef670e42a2797f2a2679543a7e50f173b4693d3d6
parentdd2a5620d594523cd515a629e105a9a2b64345bb
BUG/MEDIUM: mux-h2: Remove the padding length when a DATA frame size is checked

When a DATA frame is processed for a message with a content-length, we first
take care to not have a frame size that exceeds the remaining to
read. Otherwise, an error is triggered. But we must remove the padding length
from the frame size because the padding is not included in the announced
content-length.

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