ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 4865] mp2t Reassembly Help

Date: Thu, 10 Jun 2010 18:56:29 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4865

--- Comment #1 from Bill Meier <wmeier@xxxxxxxxxxx> 2010-06-10 21:56:27 EDT ---
(In reply to comment #0)
> I also get a multitude of these errors:
> Warn Dissector bug, protocol MP2T, in packet 1: proto.c:1570: failed assertion
> "(guint)hfindex < gpa_hfinfo.len"
> 
> Anders suggested that something is wrong with my hf declarations.

I agree; that should be fixed first before anything else.



It would apear that somehow your code is supplying a garbage hf_index 
(For example: when calling 
proto_tree_add_item(proto_tree *tree, const int hfindex, tvbuff_t *tvb,
            const gint start, gint length, const guint encoding)
).

Maybe the hf[] array isn't being registered properly in proto_register...

or: Wrong args to proto.... call ??

or: ??

You should be able to step thru the code in your dissector to see which calls
trigger the error message.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.