BUG/MINOR: quic: underflow issue for bbr_inflight_hi_from_lost_packet()
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 12 Dec 2024 11:04:14 +0000 (12:04 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 6 Jan 2025 10:18:00 +0000 (11:18 +0100)
commita42fad1bdecd30166959f1f0e1b5f816cbc6af69
tree7a4246492638342d7d69c570d3a0329193d1e286
parent33888565d7eb5bbbf6dec4826654e712827ba824
BUG/MINOR: quic: underflow issue for bbr_inflight_hi_from_lost_packet()

Add a test to ensure that values of a local variable used by
bbr_inflight_hi_from_lost_packet() is not be impacted by underflow issues
when subtracting too big numbers and make this function return a correct value.

Must be backported to 3.1.

(cherry picked from commit ebfc301d5d8dbae0c07a9d937bef18d5c3f841c6)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/quic_cc_bbr.c