projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b178c7
)
giomodule: Add a NULL guard to extension_point_get_extension_by_name
author
Debarshi Ray
<debarshir@gnome.org>
Thu, 10 Apr 2014 13:26:45 +0000
(15:26 +0200)
committer
Debarshi Ray
<debarshir@gnome.org>
Thu, 10 Apr 2014 13:27:16 +0000
(15:27 +0200)
... otherwise a NULL input will lead to a crash in strcmp.
https://bugzilla.gnome.org/show_bug.cgi?id=727964
gio/giomodule.c
patch
|
blob
|
history
diff --git
a/gio/giomodule.c
b/gio/giomodule.c
index
18b7933
..
043ec19
100644
(file)
--- a/
gio/giomodule.c
+++ b/
gio/giomodule.c
@@
-1253,6
+1253,8
@@
g_io_extension_point_get_extension_by_name (GIOExtensionPoint *extension_point,
{
GList *l;
+ g_return_val_if_fail (name != NULL, NULL);
+
lazy_load_modules (extension_point);
for (l = extension_point->extensions; l != NULL; l = l->next)
{