]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: quic-be: avoid crashes when releasing Initial pktns
authorFrederic Lecaille <flecaille@haproxy.com>
Tue, 26 Aug 2025 08:26:14 +0000 (10:26 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Wed, 27 Aug 2025 14:14:19 +0000 (16:14 +0200)
commit729196fbedad7bcc906a34a144a5fa4ffd2464dc
tree606ef88bcdfc2a01aa87aa949055490de23fa057
parentc36e4fb17f63bfb798856d63bfd7d3bc2d05f70c
BUG/MEDIUM: quic-be: avoid crashes when releasing Initial pktns

This bug arrived with this fix:

    BUG/MINOR: quic-be: missing Initial packet number space discarding

leading to crashes when dereferencing ->ipktns.

Such crashes could be reproduced with -dMfail option. To reach them, the
memory allocations must fail. So, this is relatively rare, except on systems
with limited memory.

To fix this, do not call quic_pktns_discard() if ->ipktns is NULL.

No need to backport.
src/quic_conn.c