BUG/MINOR: quic: fix possible integer wrap around in cubic window calculation
authorFrederic Lecaille <flecaille@haproxy.com>
Wed, 31 Jan 2024 17:21:34 +0000 (18:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Feb 2024 10:42:04 +0000 (11:42 +0100)
commit6cda85ba431a2b30487b278a5f64cfb64f5eeeb8
tree9b4c2dba73b552d4be04b1b0ead060cd3fed77ac
parenta6a2bb66c4637bbd1df1baac9aa05904b32fc14f
BUG/MINOR: quic: fix possible integer wrap around in cubic window calculation

Avoid loss of precision when computing K cubic value.
Same issue when computing the congestion window value from cubic increase function
formula with possible integer varaiable wrap around.

Depends on this commit:

MINOR: quic: Code clarifications for QUIC CUBIC (RFC 9438)

Must be backported as far as 2.6.

(cherry picked from commit 19a66b290e8e6d1a9bda081038189ebbeac0b37b)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/quic_cc_cubic.c