]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: h3: extend coverage for duplicate SETTINGS ids quic-interop
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 24 Nov 2026 14:43:22 +0000 (15:43 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 24 Nov 2026 15:34:53 +0000 (16:34 +0100)
commit7b955ca63b2a27b0c2044684a8aae61425d23861
treef00f3a11a04b55c383195e794069d9dae84497ae
parentff6cfbdb97ae78ac07247c5b8d31f0a5c9022b28
BUG/MINOR: h3: extend coverage for duplicate SETTINGS ids

RFC 9114 forbids the emission of duplicate settings IDs in the same
frame. The receiver may report an error when this occurs.

Settings IDs are expressed as QUIC varint and their range is thus quite
large. As a convenience, only the smallest IDs set is checked, which
matches the most frequent usage.

A mistake in the previous code restricts unnecessarily the check to IDs
less than sizeof long, so typically only IDs from 0 to 7 are really
checked on a 64-bit platform. Fix this by multiplying sizeof() by 8,
covering all IDs up to 63 (31 on a 32-bit platform).

This should be backported up to 2.6 after a period of observation.
src/h3.c