MINOR: quic: Wrong ACK range building
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 16 Nov 2021 09:54:19 +0000 (10:54 +0100)
committerFrédéric Lécaille <flecaille@haproxy.com>
Fri, 19 Nov 2021 13:37:35 +0000 (14:37 +0100)
commit0e25783d47edfc8efeb53a3c1a93aca270af1890
tree98db49eab8e32c0f74c97b0dee5d89121562cd77
parentf67b35620e9310f446923312ba0ce765359f8a47
MINOR: quic: Wrong ACK range building

When adding a range, if no "lower" range was present in the ack range root for
the packet number space concerned, we did not check if the new added range could
overlap the next one. This leaded haproxy to crash when encoding negative integer
when building ACK frames.
This bug was revealed thanks to "multi_packet_client_hello" QUIC tracker
test which makes a client send two first Initial packets out of order.
src/xprt_quic.c