Wireshark-dev: [Wireshark-dev] DISSECTOR_ASSERT_NOT_REACHED in WLCCP decode...
From: "Kevin A. Noll" <spamknoll@xxxxxxxxxxxxx>
Date: Sun, 27 May 2007 23:39:22 -0400
I am progressing on my updated WLCCP dissector, but I've run into another
(amateur) issue. This protocol allows TLVs to be tacked on to the end of a
packet with no indication of how many or how long they are until you start
reading the TLVs and iterate through them until you get to the end of the
tvbuff.

I am successfully (sort of) doing this iteration and decoding all of the TLV
fields, but on every one, the last field (the one that runs to the end of
the tvbuff) is not added to the proto_tree (even though I have the
appropriate proto_tree_add). Instead I am getting an exception that says
"Dissector bug... failed assertion DISSECTOR_ASSERT_NOT_REACHED".

I've looked at the definitions for the DISSECTOR_ASSERTs in proto.h and
can't quite figure out what this means. I've set the
WIRESHARK_ABORT_ON_DISSECTOR_BUG environment variable, but no stack trace is
printed when it aborts.

What does this exception mean and what might I be doing incorrectly to cause
this?

--kan--
--
Kevin A. Noll, KD4WOZ
CCIE, CCDP
Versatile, Inc.