Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Dissector bug

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Fri, 8 Jan 2010 17:34:11 +0100
On Fri, Jan 08, 2010 at 11:39:04AM +0530, Rach, Darshan wrote:
> I am getting the following error:
> [Dissector bug, protocol DASH: proto.c:2457: failed assertion "(guint)hfindex < gpa_hfinfo.len"]
> 
> My code looks like this:
> 
> static gint hf_epg_info_bits_len = -1;
> 
> {&hf_epg_info_bits_len,
> {"EPG Info Bits Length","oqtp.epg_info_bits_len",FT_UINT8, BASE_DEC,NULL, 0x0,
> "EPG Info Bits Length", HFILL}},
> 
> epg_info_bits_len = ((tvb_get_guint8(next_tvb, packet_field_offset)) & 0xf);
> proto_tree_add_uint(sub_tree, hf_epg_info_bits_len, next_tvb, packet_field_offset, 1, epg_info_bits_len);
> packet_field_offset += 1;

Had similar problems of a similar type.  Please run tolls/checkhf.pl on
your dissector source.

 Ciao
        Joerg
-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.