aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-eigrp.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2012-10-08 20:43:06 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2012-10-08 20:43:06 +0000
commit5ff09963ab55b02d05ad59e473bb186b995d1c14 (patch)
tree0674a0bf953b0404294bb2ad797f590f1b16d5c4 /epan/dissectors/packet-eigrp.c
parent34b3dc498b42410cea126c0ef35519bd3a894c3a (diff)
fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7800
use correct data types in eigrp dissector to prevent overflow svn path=/trunk/; revision=45408
Diffstat (limited to 'epan/dissectors/packet-eigrp.c')
-rw-r--r--epan/dissectors/packet-eigrp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-eigrp.c b/epan/dissectors/packet-eigrp.c
index da1343c954..a783fb2ea0 100644
--- a/epan/dissectors/packet-eigrp.c
+++ b/epan/dissectors/packet-eigrp.c
@@ -2149,8 +2149,8 @@ dissect_eigrp_wide_metric_attr (proto_tree *tree, tvbuff_t *tvb,
tvbuff_t *sub_tvb;
int sub_offset;
- gint8 attr_offset = 0;
- gint8 attr_opcode = 0;
+ guint16 attr_offset = 0;
+ guint8 attr_opcode = 0;
limit *= 2; /* words to bytes */