]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-quic: do not send too big MAX_STREAMS ID
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 8 Aug 2024 10:04:47 +0000 (12:04 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 9 Aug 2024 12:33:49 +0000 (14:33 +0200)
commitf3c75a52df29247e5d502344127d42efb2c12b82
tree745552d1ac98b3ab22d4e66fe19affc249f35c69
parentaae2ff76913ace47e82ad121a018fad8c5b55eb9
BUG/MINOR: mux-quic: do not send too big MAX_STREAMS ID

QUIC stream IDs are expressed as QUIC variable integer which cover the
range for 0 to 2^62 - 1. As such, it is forbidden to send an ID for
MAX_STREAMS flow-control frame which would allow to overcome this value.

This patch fixes MAX_STREAMS emission to ensure sent value is valid.
This also ensures that the peer cannot open a stream with an invalid ID
as this would cause a flow-control violation instead.

This must be backported up to 2.6.
src/mux_quic.c