diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2012-10-17 07:44:33 +0000 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2012-10-17 07:44:33 +0000 |
commit | 0b4e3b993611aabb15bc23878fa670afd225b6ab (patch) | |
tree | 6b2a81971425bcf9319cd8cf2dccd030d26fe08a /epan/dissectors/packet-wtp.c | |
parent | bfdfd004cb0892121d2a259801e009697788a0db (diff) |
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
Diffstat (limited to 'epan/dissectors/packet-wtp.c')
-rw-r--r-- | epan/dissectors/packet-wtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |