GNOME Bugzilla – Bug 727965
Make goa_provider_get_for_provider_type robust against NULL
Last modified: 2014-04-10 13:53:41 UTC
Passing a NULL provider_type to goa_provider_get_for_provider_type will lead to a crash because g_io_extension_point_get_extension_by_name is not NULL-safe (bug 727964). A corrupt accounts.conf is one of the cases where this can happen. See: https://bugzilla.redhat.com/show_bug.cgi?id=991794 Regardless of whether g_io_extension_point_get_extension_by_name becomes NULL safe or not, I think we should handle it ourselves. Otherwise it is liable to break if the implementation of the function changes.
Turns out this was fixed during the 3.9.x cycle: commit c27873a0109f68f056acd8740acf8f687aca55a0 Author: Marco Barisione <marco.barisione@collabora.co.uk> Date: Tue Aug 20 15:47:31 2013 +0100 provider: check that provider_type is not NULL in get_for_provider_type() https://bugzilla.gnome.org/show_bug.cgi?id=696267 *** This bug has been marked as a duplicate of bug 696267 ***