aboutsummaryrefslogtreecommitdiffstats
path: root/epan/tvbuff.c
diff options
context:
space:
mode:
authorBrian Sipos <brian.sipos@gmail.com>2022-10-19 21:59:25 -0400
committerJoão Valverde <j@v6e.pt>2022-10-20 08:32:31 +0000
commita81e90f39b219810c7fd165d5de43c61468f0cb0 (patch)
tree15bf8ab730be5aab5505c57764803524c3ed5d41 /epan/tvbuff.c
parentb2b76c2baefc9a483de83cbcb810d9a609e948f0 (diff)
TCPCL: Clamp and indicate lengths too large for Wireshark to handle
This fixes windows build errors reported in comments on !8541
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r--epan/tvbuff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c
index 97e60b564d..c849e2558d 100644
--- a/epan/tvbuff.c
+++ b/epan/tvbuff.c
@@ -4571,7 +4571,7 @@ tvb_get_varint(tvbuff_t *tvb, guint offset, guint maxlen, guint64 *value, const
for (i = 0; ((i < FT_VARINT_MAX_LEN) && (i < maxlen)); ++i) {
b = tvb_get_guint8(tvb, offset++);
- if ((i == 9) && (*value >= 1ul<<(64-7))) {
+ if ((i == 9) && (*value >= (uint64_t)1<<(64-7))) {
// guaranteed overflow, not valid SDNV
return 0;
}