ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: Re: [Ethereal-dev] Access violation in v0.10.6 (reproducible in decode_as_dlg.c)

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Tue, 24 Aug 2004 21:41:40 -0700
peter@xxxxxxxxxxxx wrote:

To reproduce the error (access violation on Windows, segmentation fault on
Unix) do:
1. Start a capture, any network data is feasible.
2. Stop the capture (after a while, make sure you have at least one packet
to "decode as").
3. Choose "Analyse -> Decode as" and choose any protocol other than the
one it actually is when captured.
4. Let's say you choose ftp as the protocol to decode the captured stream
as. Now add ftp (only ftp) as filter, this shows of course only the
"Decode as" packets.
5. Choose "Analyse -> Decode as -> default". This causes the access
violation in gtk\decode_as_dlg.c, routine static void
decode_transport(GtkWidget *notebook_pg). The first call to
"decode_change_one_dissector(table_name, cfile.edt->pi.srcport, list);"
fails since cfile.edt in this case is NULL.

I tried that but couldn't reproduce the problem.

"cfile.edt" should be non-null if a packet is selected, and if no packet is selected, the "Analyze -> Decode As" menu item should be disabled.