From 52a958cfad683e242d160535e3db427bf83daf3c Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 25 Oct 2006 15:22:39 +0000 Subject: [PATCH] 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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19681 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-wbxml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? -- 2.25.1