]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: do not crash on CRYPTO ncbuf alloc failure
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 18 Apr 2025 16:02:48 +0000 (18:02 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 18 Apr 2025 16:11:17 +0000 (18:11 +0200)
commit4309a6fbf80240b0880c5adf091f0075c3bcd53f
tree31be6dac8f5b676a240b018d5a469cad2a4a333c
parentacd372d6aca26467c9e984b3cfca94d0af68f059
BUG/MINOR: quic: do not crash on CRYPTO ncbuf alloc failure

To handle out-of-order received CRYPTO frames, a ncbuf instance is
allocated. This is done via the helper quic_get_ncbuf().

Buffer allocation was improperly checked. In case b_alloc() fails, it
crashes due to a BUG_ON(). Fix this by removing it. The function now
returns NULL on allocation failure, which is already properly handled in
its caller qc_handle_crypto_frm().

This should fix the last reported crash from github issue #2935.

This must be backported up to 2.6.
include/haproxy/quic_conn.h