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

Wireshark-bugs: [Wireshark-bugs] [Bug 1518] Bad g_asser in color_filter for coloring rules editi

Date: Wed, 4 Apr 2007 13:25:13 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1518





------- Comment #1 from florent.drouin@xxxxxxxxxx  2007-04-04 13:25 GMT -------
Created an attachment (id=610)
 --> (http://bugs.wireshark.org/bugzilla/attachment.cgi?id=610&action=view)
proposal workaround for color_filter.c

he g_assert_not_reached()in the function color_filter_compile_cb, can be
reached just in case of wrong click. If you click on the OK button of the
"Coloring rules window", before to close the "Edit Color Filter" window, you
will reached this case.
The problem, is that this g_assert will kill wireshark. 
I tried to implement a workaround, to accept this case. 
The filter for the coloring rules is removed from the list of coloring rules,
but not in the preference file (~/.wireshark/colorfilters). So you will have
have to edit again the list of filter at next restart of wireshark, but there
is no crash anymore.


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