GNOME Bugzilla – Bug 325435
FILTER_RULE_PIXBUF_FORMATS needs NULL check
Last modified: 2006-01-02 02:52:58 UTC
Steps to reproduce: 1. program use filechooser with gtk_file_filter_add_pixbuf_formats 2. The directory with the file not to be able to acquire myme_type is opened. 3. The Application "program" has quit unexpectedly. Stack trace:
+ Trace 64891
Other information: gtk_file_filter_filter(gtkfilefilter.c) FILTER_RULE_PATTERN: check whether filter_info->mime_type is NULL. but FILTER_RULE_PIXBUF_FORMATS: no check whether filter_info->mime_type is NULL. diff -uNr gtk+-2.8.9.org/gtk/gtkfilefilter.c gtk+-2.8.9/gtk/gtkfilefilter.c --- gtk+-2.8.9.org/gtk/gtkfilefilter.c 2005-03-20 16:01:21.000000000 +0900 +++ gtk+-2.8.9/gtk/gtkfilefilter.c 2006-01-01 21:24:25.000000000 +0900 @@ -425,6 +425,8 @@ { GSList *list; + if (filter_info->mime_type == NULL) + break; for (list = rule->u.pixbuf_formats; list; list = list->next) { int i;
*** This bug has been marked as a duplicate of 317687 ***