mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-10-22 01:51:20 +03:00
src/Cedar/Hub.c: avoid unintentional integer overflow
found by coverity
This commit is contained in:
1 parent
cb55ba6e7f
commit
3da4a9c5e3
1 file changed
+1
-1
+1
-1
@@ -6098,7 +6098,7 @@ void IntoTrafficLimiter(TRAFFIC_LIMITER *tr, PKT *p)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Value increase
|
// Value increase
|
||||||
tr->Value += (UINT64)(p->PacketSize * 8);
|
tr->Value += p->PacketSize * (UINT64)8;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The bandwidth reduction by traffic limiter
|
// The bandwidth reduction by traffic limiter
|
||||||
|
|||||||
Reference in new issue
Block a user