aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wbxml.c
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2006-10-25 15:22:39 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2006-10-25 15:22:39 +0000
commit09ef3b61428d0cc731dc08918b3743a1f0e4706d (patch)
treed52b9a5f4cdd3df06e6ddde8305da1d02aaf04a5 /epan/dissectors/packet-wbxml.c
parent5a13d13021f1796862a95a14b1b3ed74a4070561 (diff)
downloadwireshark-09ef3b61428d0cc731dc08918b3743a1f0e4706d.tar.gz
wireshark-09ef3b61428d0cc731dc08918b3743a1f0e4706d.tar.bz2
wireshark-09ef3b61428d0cc731dc08918b3743a1f0e4706d.zip
From Stephen Fisher
Attached is a patch to fix bug #1170: "Wireshark interpretation of WBXML does not comply with Spec." This has been verified with the sample capture the user provided. svn path=/trunk/; revision=19681
Diffstat (limited to 'epan/dissectors/packet-wbxml.c')
-rw-r--r--epan/dissectors/packet-wbxml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-wbxml.c b/epan/dissectors/packet-wbxml.c
index a8b1e5097e..d164dace7e 100644
--- a/epan/dissectors/packet-wbxml.c
+++ b/epan/dissectors/packet-wbxml.c
@@ -5676,7 +5676,7 @@ parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, guint32 offset,
off, str_tbl, *level, codepage_attr, map);
/* Check that there is still room in packet */
off += len;
- if (off >= tvb_len) {
+ if (off > tvb_len) {
DebugLog(("STAG: level = %u, ThrowException: len = %u (short frame)\n", *level, off - offset));
/*
* TODO - Do we need to free g_malloc()ed memory?