]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-quic: handle properly recv ncbuf alloc failure
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 11 May 2023 15:00:54 +0000 (17:00 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 12 May 2023 13:52:19 +0000 (15:52 +0200)
commitd00b3093c9c60883e3abe96dcd521e670731ac84
tree6f34d258e48ad89ac62f28a5a536bafa18dcbdbe
parent0abde9dee69fe151f5f181a34e0782ef840abe53
BUG/MINOR: mux-quic: handle properly recv ncbuf alloc failure

The function qc_get_ncbuf() is used to allocate a ncbuf content.
Allocation failure was handled using a plain BUG_ON.

Fix this by a proper error management. This buffer is only used for
STREAM frame reception to support out-of-order offsets. When an
allocation failed, close the connection with a QUIC internal error code.

This should be backported up to 2.6.
src/mux_quic.c