From 3da4a9c5e34451a5dbf942588c008664cbbd8334 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sun, 12 Aug 2018 15:09:18 +0500 Subject: [PATCH] src/Cedar/Hub.c: avoid unintentional integer overflow found by coverity --- src/Cedar/Hub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cedar/Hub.c b/src/Cedar/Hub.c index a442ee21..4af7debb 100644 --- a/src/Cedar/Hub.c +++ b/src/Cedar/Hub.c @@ -6098,7 +6098,7 @@ void IntoTrafficLimiter(TRAFFIC_LIMITER *tr, PKT *p) } // Value increase - tr->Value += (UINT64)(p->PacketSize * 8); + tr->Value += p->PacketSize * (UINT64)8; } // The bandwidth reduction by traffic limiter