BUG/MINOR: quic: Possible CRYPTO frame building errors.
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 24 Dec 2020 12:01:37 +0000 (13:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 4 Jan 2021 11:31:28 +0000 (12:31 +0100)
commitea60499912936d552d4e14fdd3c6ccb13918f7dc
tree97693362b0203c9c057361dcfdb815bcb0b6576c
parent6c1e36ce55561281c5977fbf2e97324b4e70c211
BUG/MINOR: quic: Possible CRYPTO frame building errors.

This is issue is due to the fact that when we call the function
responsible of building CRYPTO frames to fill a buffer, the Length
field of this packet did not take into an account the trailing 16 bytes for
the AEAD tag. Furthermore, the remaining <room> available in this buffer
was not decremented by the CRYPTO frame length, but only by the CRYPTO data length
of this frame.
src/xprt_quic.c