Skip to content

xdgmime: Prevent infinite loops from badly-formed MIME registrations

Prevent recursion of _xdg_mime_cache_mime_type_subclass() with the same value of argument mime for the subclasses of a MIME type.

This was observed in GLib as, and a backtrace of the infinite loop is here:

Signed-off-by: Philip Withnall

Helps: #32

Edited by Philip Withnall

Merge request reports