From 0b35075866976f79bf8b3147a77abf5c5707cecf Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Mon, 4 Jul 2016 22:41:01 +0200 Subject: dis: cast to guint64 to avoid potential overflow (CID 1214480). Change-Id: I24ae4a7a5ef8b4ed363ec849ac9c8aeeefe836dd Reviewed-on: https://code.wireshark.org/review/16288 Petri-Dish: Dario Lombardo Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- epan/dissectors/packet-dis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/dissectors/packet-dis.c b/epan/dissectors/packet-dis.c index d0cd27883a..e2665f85e5 100644 --- a/epan/dissectors/packet-dis.c +++ b/epan/dissectors/packet-dis.c @@ -4005,7 +4005,7 @@ static int dissect_DIS_FIELDS_CLOCK_TIME(tvbuff_t *tvb, proto_tree *tree, int of isAbsolute = uintVal & 1; /* convert TS to MS */ - ms = (uintVal >> 1) * MSEC_PER_HOUR / FSV; + ms = (guint64)(uintVal >> 1) * MSEC_PER_HOUR / FSV; tv.secs = (time_t)ms/1000; tv.nsecs = (int)(ms%1000)*1000000; -- cgit v1.2.3