GNOME Bugzilla – Bug 160838
Fun with _xdg_mime_alias_read_from_file and _xdg_mime_parent_read_from_file
Last modified: 2004-12-22 21:47:04 UTC
This function is not accumulating the result across the different calls corresponding to each dir in XDG_DATA_DIRS, because of the line reading list->aliases = malloc (alloc * sizeof (XdgAlias)); The call to qsort should be protected with a if (list->n_aliases > 0), since the call to reallocate which immediately precedes it might set list->aliases to NULL. Same comments on _xdg_mime_parent_read_from_file.
Setting version and marking as important, as this causes crashes on anything using the mime system for me, and I guess for others.
Created attachment 34651 [details] [review] Fix all that
Fixed in the gtk copy now.
Fixed in gnome-vfs CVS too, as well as in the master xdgmime copy in freedesktop.org CVS.