diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-07-11 00:17:08 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-07-11 00:17:08 +0000 |
commit | c23afc424e03e42c7fdedaf15abf15ebc4b59b24 (patch) | |
tree | 062b8401bb90e89b6c48db00fce617f547a71693 /epan/dissectors | |
parent | 4c4b8f8891ce8e6e38e156c8555ad147426e083a (diff) |
As noted by Jaap Keuter on -dev, be sure to use message_size instead of
header->message_size for a correct host endianness comparison.
svn path=/trunk/; revision=37957
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-giop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-giop.c b/epan/dissectors/packet-giop.c index e82a600e27..54ef4d52f4 100644 --- a/epan/dissectors/packet-giop.c +++ b/epan/dissectors/packet-giop.c @@ -1763,7 +1763,7 @@ static gboolean try_heuristic_giop_dissector(tvbuff_t *tvb, packet_info *pinfo, else message_size = pletohl (&header->message_size); - if (*offset > header->message_size) + if (*offset > message_size) return FALSE; } |