BUG/MINOR: quic: Wrong STREAM frames parsing.
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 31 Dec 2020 09:57:04 +0000 (10:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 4 Jan 2021 11:31:28 +0000 (12:31 +0100)
commit129a351a3f566fb0d025dfa7fd74e21ea7ae6a91
treee7b0db022d8f956734acc6e296d86ca4c30b2f38
parent50044adc608798ad47a2d340d792aff887dedeab
BUG/MINOR: quic: Wrong STREAM frames parsing.

After having re-read the RFC, we noticed there are two bugs in the STREAM
frame parser. When the OFF bit (0x04) in the frame type is not set
we must set the offset to 0 (it was not set at all). When the LEN bit (0x02)
is not set we must extend the length of the data field to the end of the packet
(it was not set at all).
src/quic_frame.c