]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: Safer QUIC frame builders
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 23 Aug 2022 15:40:09 +0000 (17:40 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Tue, 23 Aug 2022 15:40:09 +0000 (17:40 +0200)
commitb8047de11a4a4083a9fc92bf2bd4b731163fc149
tree6d8ae17f19ea0ff9f80d8a002fbfac644ad6a072
parenta8a60432406d7bfd06975e087650a8817c03fcf6
BUG/MINOR: quic: Safer QUIC frame builders

Do not rely on the fact the callers of qc_build_frm() handle their
buffer passed to function the correct way (without leaving garbage).
Make qc_build_frm() update the buffer passed as argument only if
the frame it builds is well formed.

As far as I sse, there is no such callers which does not handle
carefully such buffers.

Must be backported to 2.6.
src/quic_frame.c
src/xprt_quic.c