]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: fix free on quic-conn fail alloc
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 11 Oct 2023 14:04:35 +0000 (16:04 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 13 Oct 2023 06:52:20 +0000 (08:52 +0200)
commit63a6f26a861b8cd3430d964317db1276544024c0
tree0b00410c0cb2c63588f9df2f28953d28f63cd0a0
parent7d76ffb2a49a2926010358a3f3e08a395715a547
BUG/MINOR: quic: fix free on quic-conn fail alloc

qc_new_conn() allocates several elements in intermediary steps. If one
of the fails, a global free is done on the quic_conn and its elements.
This requires that most elements are first initialized to NULL or
equivalent to ensure freeing operation is done only on proper values.

Once of this element is qc.tx.cc_buf_area. It was initialized too late
which could caused crashes. This is introduced by
  9f7cfb0a56352188854bdaef9617ca836c2a30c9
  MEDIUM: quic: Allow the quic_conn memory to be asap released.

No need to backport.
src/quic_conn.c