Wireshark-bugs: [Wireshark-bugs] [Bug 7506] Wireshark crash
Date: Fri, 20 Jul 2012 15:10:49 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7506

Bill Meier <wmeier@xxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|Low                         |High
             Status|ASSIGNED                    |NEW

--- Comment #1 from Bill Meier <wmeier@xxxxxxxxxxx> 2012-07-20 15:10:49 PDT ---
OK:

In Wireshark 1.8 and newer all of the Analyze ! Apply as Filter  and Analyze !
Prepare a Filter actions crash at:

match_selected_cb_do(gpointer data, int action, gchar *text)
{
      ....

      filter_te = g_object_get_data(G_OBJECT(data), E_DFILTER_TE_KEY);
=>    g_assert(filter_te);


Doing the actions from the right-click popup on a selected item works AOK.

-----
For Analyze ! Prepare a Filter ! Selected:

I note that the callback for this action is
tree_view_menu_prepare_selected_cb().

I also note that this is the same callback as is used for the right-click
"treeview" popup.

Is the fix as simple as implementing a separate callback for the "Analyze !
Prepare a Filter ! Selected" action with the "widget path" being used set to
"/Menubar/PrepareaFilter/Selected") ?

I've run out of time to pursue further (and am not familiar with using
UIManager) so I'm going to punt.   :)

Anders ?


------------

tree_view_menu_prepare_selected_cb(GtkAction *action _U_, gpointer user_data)
{
    GtkWidget *widget = gtk_ui_manager_get_widget(ui_manager_tree_view_menu,
"/TreeViewPopup/PrepareaFilter/Selected");
    match_selected_ptree_cb( widget , user_data, MATCH_SELECTED_REPLACE);
}

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