]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h3: Be sure to handle fin bit on the last DATA frame
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 28 Jul 2023 07:33:29 +0000 (09:33 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 28 Jul 2023 07:33:32 +0000 (09:33 +0200)
commit2f8c44cfb7f875773a3c3fd2029430256b4df492
tree8d476ae7f3628508f8cbacf9d4a9ee3ce8677b9e
parentf7596209eea21ee4e62ea24c8bc18e181d13f348
BUG/MEDIUM: h3: Be sure to handle fin bit on the last DATA frame

When DATA frames are decoded for a QUIC stream, we take care to not exceed
the announced content-length, if any. To do so, we check we don't received
more data than excepted but also no less than announced. For the last check,
we rely on the fin bit.

However, it is possible to have several DATA frames to decode at a time
while the end of the stream was received. In this case, we must take care to
handle the fin bit only on the last frame. But because of a bug, the fin bit
was handled to early, erroneously triggering an internal error.

This patch must be backported as far as 2.6.
src/h3.c