]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h3: reject too big frames
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 24 May 2022 09:13:46 +0000 (11:13 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 25 May 2022 13:41:25 +0000 (15:41 +0200)
commit80097cc824ec7db26f12fe583c0d6ed72a7ea8e2
treefe20dcb941e2f0190bdc576c2c3e19a8fe47e603
parent5c4373a47b1b84f6d32a0904c00cde3e5d96393a
MINOR: h3: reject too big frames

The whole frame payload must have been received to demux a H3 frames,
except for H3 DATA which can be fragmented into multiple HTX blocks.

If the frame is bigger than the buffer and is not a DATA frame, a
connection error is reported with error H3_EXCESSIVE_LOAD.

This should be completed in the future with the H3 settings to limit the
size of uncompressed header section.

This code is more generic : it can handle every H3 frames. This is done
in order to be able to use h3_decode_qcs() to demux both uni and bidir
streams.
src/h3.c