diff options
author | Evan Huus <eapache@gmail.com> | 2014-07-04 21:45:15 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-07-04 21:53:08 +0000 |
commit | c92bf7e44bae7d73b65461b7fb5bf9cea72705ce (patch) | |
tree | 253fd44e86982265f503aa82ce71509276ea5798 | |
parent | e398c8ed6ba1a79c95428a974dfedd4480488fbe (diff) |
Expand a variable from 16 to 32 bits (and make it signed).
Fixes an overflow leading to infinite loop.
Bug: 10259
Change-Id: Ie76c5a810af927ba092f4067268bd789b3a7d7bf
Reviewed-on: https://code.wireshark.org/review/2856
Reviewed-by: Evan Huus <eapache@gmail.com>
-rw-r--r-- | epan/dissectors/packet-openflow_v4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-openflow_v4.c b/epan/dissectors/packet-openflow_v4.c index 7d295173f3..b11ff16476 100644 --- a/epan/dissectors/packet-openflow_v4.c +++ b/epan/dissectors/packet-openflow_v4.c @@ -3005,7 +3005,7 @@ dissect_openflow_table_feature_prop_v4(tvbuff_t *tvb, packet_info *pinfo _U_, pr guint16 prop_type; guint16 prop_length; guint16 elem_begin; - guint16 body_end; + gint32 body_end; guint16 pad_length; ti = proto_tree_add_text(tree, tvb, offset, -1, "Table feature property"); |