BUG/MINOR: quic: reject invalid max_udp_payload size
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 6 May 2025 16:01:32 +0000 (18:01 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 20 May 2025 16:09:31 +0000 (18:09 +0200)
commit59b285fdfceede1a5c7dfc8190ea6120e83f3d49
treec331c7ded154108c9684bd100e45d3c4d2987c96
parent47423e6e70fbe49399af7c79dc56ac46d62f47a1
BUG/MINOR: quic: reject invalid max_udp_payload size

Add a checks on received max_udp_payload transport parameters. As
defined per RFC 9000, values below 1200 are invalid, and thus the
connection must be closed with TRANSPORT_PARAMETER_ERROR code.

Prior to this patch, an invalid value was silently ignored.

This should be backported up to 2.6. Note that is relies on previous
patch "MINOR: quic: extend return value on TP parsing".

(cherry picked from commit 4bc7aa548adcd9ee424c65cd346e94f8749dce64)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit c806ee0300fd82f6414a172a3c5829afaeb16eac)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/quic_tp.c