]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: quic: do not reject CRYPTO data exactly fitting in buffer
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 18 Nov 2026 15:50:24 +0000 (16:50 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 19 Nov 2026 14:08:35 +0000 (15:08 +0100)
commita0858751a61263c8d9ffda1a9d481bc03163d6bb
tree9dcf6b21bf2a2534dcf7b0c41779dea1c6a68272
parentd574bddf36aa2e131721384e4d82ae3a291d2afa
BUG/MINOR: quic: do not reject CRYPTO data exactly fitting in buffer

CRYPTO data buffering does not support wrapping of data. A BUG_ON()
ensures data never wraps during SSL read operations. This can never fire
as a similar comparison exists first in CRYPTO parsing to reject
wrapping content.

However, this code uses an incorrect greater-than-or-equal operator on
buffer wrapping. This incorrectly rejects CRYPTO content that exactly
fits in the receive buffer and closes connection. Fixes the comparison
operators so that CRYPTO data ending exactly at the buffer end can now
be normally handled.

This should be backported up to 2.6 after a period of observation.
src/quic_rx.c
src/quic_ssl.c