tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit c6ef04e0d07418f447209d86d642394a190b6702
parent b9c7825f0ebe4bf5f8afc12b97cd8482dc706064
Author: Mike Perry <mikeperry-git@torproject.org>
Date:   Wed, 11 Jan 2023 17:32:20 +0000

Coverity CID 1518991: Tighter bounds on consensus param value.

This prevents sign extension overflow in cwnd_became_full().

Diffstat:
Msrc/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 @@ -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",