From 0b4e3b993611aabb15bc23878fa670afd225b6ab Mon Sep 17 00:00:00 2001 From: Martin Kaiser Date: Wed, 17 Oct 2012 07:44:33 +0000 Subject: fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7869 make tpiLen a guint such that it can store 2 + tvb_get_guint8(...) without overflow svn path=/trunk/; revision=45614 --- epan/dissectors/packet-wtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epan/dissectors/packet-wtp.c b/epan/dissectors/packet-wtp.c index bec0e08ad9..f4773b9150 100644 --- a/epan/dissectors/packet-wtp.c +++ b/epan/dissectors/packet-wtp.c @@ -620,7 +620,7 @@ dissect_wtp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (fCon) { /* Now, analyze variable part */ unsigned char tCon; unsigned char tByte; - unsigned char tpiLen; + guint tpiLen; tvbuff_t *tmp_tvb; vHeader = 0; /* Start scan all over */ -- cgit v1.2.3