From c6ef04e0d07418f447209d86d642394a190b6702 Mon Sep 17 00:00:00 2001 From: Mike Perry Date: Wed, 11 Jan 2023 17:32:20 +0000 Subject: [PATCH] Coverity CID 1518991: Tighter bounds on consensus param value. This prevents sign extension overflow in cwnd_became_full(). --- src/core/or/congestion_control_vegas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/or/congestion_control_vegas.c b/src/core/or/congestion_control_vegas.c index 8f9c39cea6..b82c685d51 100644 --- a/src/core/or/congestion_control_vegas.c +++ b/src/core/or/congestion_control_vegas.c @@ -203,7 +203,7 @@ congestion_control_vegas_set_params(congestion_control_t *cc, networkstatus_get_param(NULL, "cc_cwnd_full_gap", VEGAS_CWND_FULL_GAP_DFLT, 0, - INT32_MAX); + INT16_MAX); cc_cwnd_full_per_cwnd = networkstatus_get_param(NULL, "cc_cwnd_full_per_cwnd", -- 2.47.2