]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: quic: Missing Initial packet length check
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 27 Apr 2022 09:42:08 +0000 (11:42 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 28 Apr 2022 14:22:40 +0000 (16:22 +0200)
commit87373e72695c3c48e75e8fc286ab98409b4b462b
tree0ddf86afdc0a3c2930d2f59c4795802631276f6e
parent77cb38d22d4f1f6b0edae2417a65c2316906796f
BUG/MINOR: quic: Missing Initial packet length check

Any client Initial packet carried in a datagram smaller than QUIC_INITIAL_PACKET_MINLEN(200)
bytes must be discarded. This does not mean we must discard the entire datagram.
So we must at least try to parse the packet length before dropping the packet
and return its length from qc_lstnr_pkt_rcv().
src/xprt_quic.c