]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: mux_quic: convert QCC rx.rlen to 64bits
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 20 Apr 2026 07:24:42 +0000 (09:24 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 20 Apr 2026 07:29:01 +0000 (09:29 +0200)
This patch is related to the issue reported on the previous issue
related to QMux record length parsing.

QCC rx.rlen is used to store the decoded record length. Convert it into
a plain 64bits integer instead of a size_t. This ensures it is
sufficient to decode record length, even with an increase of
max_record_length value (not currently implemented).

This should fix github build issue #3334 for 32bits architecture.

No need to backport.

include/haproxy/mux_quic-t.h

index b384624f7de5babd0024579becf7a09abc148528..134340567e6dbf7656c40e3f43a0a2a964fc61a5 100644 (file)
@@ -93,7 +93,7 @@ struct qcc {
        } tx;
        struct {
                struct buffer qstrm_buf;
-               size_t rlen; /* last record length read */
+               uint64_t rlen; /* last record length read */
        } rx;
 
        uint64_t largest_bidi_r; /* largest remote bidi stream ID opened. */