passes NULL mimetype to gnome_thumbnail_factory_generate_thumbnail
@chpe
Submitted by Christian Persch Link to original bug (#434109)
Description
Cloned from bug 408660:
From profile-editor.c:create_preview_pixbuf:
GnomeThumbnailFactory *thumbs;
gchar *mime_type;
mime_type = (gchar *)gnome_vfs_get_mime_type (file);
thumbs = gnome_thumbnail_factory_new (GNOME_THUMBNAIL_SIZE_NORMAL);
pixbuf = gnome_thumbnail_factory_generate_thumbnail (thumbs,
file,
mime_type);
gnome_vfs_get_mime_type can return NULL, and gnome_thumbnail_factory_generate_thumbnail will crash on that. So the return value must be checked.
Resolution: RESOLVED FIXED