BUG/MINOR: quic: consume Rx datagram even on error
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 19 Apr 2023 12:26:16 +0000 (14:26 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 20 Apr 2023 12:49:32 +0000 (14:49 +0200)
commita65dd3a2c891514313c5e19a507f79f37a90506d
tree43d148978a921e146468cf8ce3a59a43cb1f6be5
parentd537ca79dc6d4f3047a4c8e6b6d14a1cc0e4a31e
BUG/MINOR: quic: consume Rx datagram even on error

A BUG_ON crash can occur on qc_rcv_buf() if a Rx packet allocation
failed.

To fix this, datagram are marked as consumed even if a fatal error
occured during parsing. For the moment, only a Rx packet allocation
failure could provoke this. At this stage, it's unknown if the datagram
were partially parsed or not at all so it's better to discard it
completely.

This bug was detected using -dMfail argument.

This should be backported up to 2.7.
src/quic_conn.c