]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: qpack: Fix index calculation in debug functions
authorFrederic Lecaille <flecaille@haproxy.com>
Tue, 26 May 2026 09:26:23 +0000 (11:26 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Wed, 27 May 2026 16:40:53 +0000 (18:40 +0200)
commit40313cd0d5ca88af2e9cc8a11a25acd4ff9a62c9
treefbd94f0150b4db4fa9a4148fb5c1d78071b1760b
parent091768ab3ed11ce78ca60168bd2bcca950896758
BUG/MINOR: qpack: Fix index calculation in debug functions

Although qpack_idx_to_name and qpack_idx_to_value are currently only
called within uncompiled debug code, they contained an index bug. They
passed absolute indexes directly to qpack_get_dte instead of relative
dynamic table indexes.

This patch fixes the logic by subtracting QPACK_SHT_SIZE and guarding
against static table index lookups.

Should be easily backported to all versions.
include/haproxy/qpack-tbl.h