]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: quic: increment pos pointer on QMux transport params parsing
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 8 Apr 2026 08:32:17 +0000 (10:32 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 10 Apr 2026 08:20:52 +0000 (10:20 +0200)
QUIC frame parsers functions take a <pos> pointer as input argument for
the data to be parsed. If parsing is successful, <pos> must be
incremented to point to the next data.

Increment was not performed when parsing QMux transport parameters
frame. This commit fixes this. Note that for now there is no real issue
as xprt_qstrm does not check the QMux frame length.

No need to backport.

src/quic_frame.c

index edf81f14ab2fccb19f0b75f69abeed3a09a265aa..1cb2006fddb9d5ff2ca5cda49100d0ccafa04cb8 100644 (file)
@@ -1081,6 +1081,7 @@ static int quic_parse_qmux_transport_parameters(struct quic_frame *frm, struct q
        if (!quic_transport_params_decode(&params_frm->params, 1, *pos, end))
                return 0;
 
+       *pos += len;
        return 1;
 }