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

Wireshark-bugs: [Wireshark-bugs] [Bug 3821] tshark -T pdml "code should not be reached" error wi

Date: Fri, 23 Jul 2010 13:18:18 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3821

--- Comment #1 from Reinhard Speyerer <rspmn@xxxxxxxx> 2010-07-23 13:18:14 PDT ---
I finally found the time to look at this bug again.
For testing purposes I replaced the g_assert_not_reached();
at the end of the get_field_data function in print.c with
printf("\n*** skipping g_assert_not_reached\n");. With that
change tshark -T pdml produced the correct output for h245bug.pcap.

There were 8 occurences of g_assert_not_reached output which were
all for the h264.profile* fields.

It seems that the g_assert_not_reached check in get_field_data
used for -T pdml output may not be correct for certain nested
ASN.1 type definitions as tshark -r h245bug.pcap -V is able to
handle this.

My suggestion would therefore be to delete the g_assert_not_reached();
from get_field_data and simply return NULL in that case.

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