Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/gtk color_filters.c color_filters.h

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

From: deniel@xxxxxxxxxxxx (Laurent Deniel)
Date: Sun, 14 Mar 2004 17:55:53 -0600 (CST)
deniel      2004/03/14 17:55:53 CST

  Modified files:
    gtk                  color_filters.c color_filters.h 
  Log:
  * Color filters:
  
  Read of color filters rewritten to remove possibility of buffer overflow
  in read_filters_file() and to fix comment & blank line handling.
  This removes any limitation (and stack overflow) on the lengths of color
  filter name and filter expression which are now dynamically allocated.
  
  Fix removal/deletion of color filters (avoid segmentation fault when
  some color filter is deleted and then the list cleared for instance).
  The use of g_slist_remove() within an iterator is simply unsafe if the
  code is not prepared to handle this.
  
  Fix a small memory leak in revert_filters().
  
  Remove inappropriate comments in read_filters().
  
  Miscellaneous code cleaning.
  
  Revision  Changes    Path
  1.8       +118 -43   ethereal/gtk/color_filters.c
  1.5       +2 -6      ethereal/gtk/color_filters.h