]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h1: always make sure h1s->sd exists in h1_dump_h1s_info()
authorWilly Tarreau <w@1wt.eu>
Fri, 21 Feb 2025 10:31:36 +0000 (11:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 21 Feb 2025 16:41:38 +0000 (17:41 +0100)
commita56dfbdcb4cb3eb9ffd3db641efb3e5605a6c3f0
treeac497f0e556106f12d4a6db4249b8ffb0df27a1d
parent9d5bd47634707963ac6be4fc90e64feded174d0a
BUG/MINOR: mux-h1: always make sure h1s->sd exists in h1_dump_h1s_info()

This function may be called from a signal handler during a warning,
a panic or a show thread. We need to be more cautious about what may
or may not be dereferenced since an h1s is not necessarily fully
initialized. Loops of "show threads" sometimes manage to crash when
dereferencing a null h1s->sd, so let's guard it and add a comment
remining about the unusual call place.

This can be backported to the relevant versions.
src/mux_h1.c