]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: Frames added to packets even if not built.
authorFrédéric Lécaille <flecaille@haproxy.com>
Sat, 27 Aug 2022 13:51:30 +0000 (15:51 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Sat, 27 Aug 2022 16:33:19 +0000 (18:33 +0200)
commit149c531fa185f418def681fbe044d48fca1db66c
tree3f67be3f30abd2b46fd6b39375e0f0e8bbe0c4ad
parente35463c767d693d24fc26b6575749e8594e56204
BUG/MINOR: quic: Frames added to packets even if not built.

Several frames could remain as not build into <frm_list> built by qc_build_frms()
after having stopped at the first building error. So only one frame was reinserted in
the frame list passed as parameter to qc_do_build_pkt(). Then <frm_list> was
spliced to the packet frame list even its frames were not built, nor attached to
any packet. Such frames had their ->pkt member set to NULL, but considered as
built, then sent leading to a crash in qc_release_frm() where ->pkt is dereferenced.

This issue was again reported by useful traces provided by Tristan in GH #1808.

Must be backported to 2.6.
src/xprt_quic.c