BUG/MINOR: quic: Wrong reuse of fulfilled dgram RX buffer
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 23 Jun 2022 15:47:10 +0000 (17:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Jun 2022 18:39:19 +0000 (20:39 +0200)
commit0c535683eef05b420d7bf0b25cf38820d02333fe
tree0018858bebf8dd368c76febe1cffab5169dbc3d6
parent27061cd1446d1445cd9e0b739b6459e5bde5e5d2
BUG/MINOR: quic: Wrong reuse of fulfilled dgram RX buffer

After having fulfilled a buffer, then marked it as full, we must
consume the remaining space. But to do that, and not to erase the
already existing data, we must check there is not remaining data in
after the tail of the buffer (between the tail and the head).
This is done adding a condition to test that adding the number of
bytes from the remaining contiguous space to the tail does not
pass the wrapping postion in the buffer.

Must be backported to 2.6.
src/quic_sock.c