Ethereal-dev: Re: [Ethereal-dev] Access violation in v0.10.6 (reproducible in decode_as_dlg.c)
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.