After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 689948 - gst_plugin_register_func() should guard null descrptor strings with GST_STR_NULL
gst_plugin_register_func() should guard null descrptor strings with GST_STR_NULL
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: common
0.10.36
Other All
: Normal minor
: 0.10.37
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-12-10 02:11 UTC by Hong
Modified: 2012-12-10 11:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hong 2012-12-10 02:11:53 UTC
In  513 static GstPlugin * gst_plugin_register_func (GstPlugin * plugin, const GstPluginDesc * desc,
......
 519       GST_WARNING ("plugin \"%s\" has incompatible version, not loading", plugin->filename);


filename could be NULL. 

Similar protection needed in the other error checks in the beginning part of this function.
Comment 1 Wim Taymans 2012-12-10 10:59:16 UTC
commit 8914ccad3f2378843cbe4e6325d884ab96eb77de
Author: Wim Taymans <wim.taymans@collabora.co.uk>
Date:   Mon Dec 10 11:55:42 2012 +0100

    plugin: protect against NULL filename in debug
    
    See https://bugzilla.gnome.org/show_bug.cgi?id=689948