Coverity CID 1518991: Tighter bounds on consensus param value.

This prevents sign extension overflow in cwnd_became_full().
This commit is contained in:
Mike Perry
2023-01-11 17:32:20 +00:00
parent b9c7825f0e
commit c6ef04e0d0
+1 -1
View File
@@ -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",