]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-quic: check access on qcs stream-endpoint
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 21 Nov 2025 10:06:38 +0000 (11:06 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 21 Nov 2025 10:16:07 +0000 (11:16 +0100)
commitbbd83e3de90ffa06e7c3ae2edaf9f8b0eade0df1
tree28d45a371094eb5af3f17b53b23df04e0d1ddc71
parent91f479604e93f55715f5c84e87547c17e1d52ab8
BUG/MINOR: mux-quic: check access on qcs stream-endpoint

Since the following commit, allocation of stream-endpoint has been
delayed. The objective is to allocate it only for QCS attached to an
upper stream object.

  commit e6064c561684d9b079e3b5725d38dc3b5c1b5cd5
  OPTIM: mux-quic: delay FE sedesc alloc to stream creation

However, some MUX functions are unsafe as qcs->sd is dereferenced
without any check on it which will result in a crash. Fix this by
testing that qcs->sd is allocated before using it.

This does not need to be backported, unless the above patch is.
src/mux_quic.c