[gstreamer-bugs] [Bug 532864] gstreamer-properties crashed with SIGSEGV in strcmp()

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Sep 5 06:16:09 PDT 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=532864

  GStreamer | gst-plugins-base | Ver: 0.10.18

Stefan Kost (gstreamer, gtkdoc dev) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ensonic at sonicpulse.de




------- Comment #3 from Stefan Kost (gstreamer, gtkdoc dev)  2008-09-05 13:16 UTC -------
strcmp crashes if either argument is NULL. As this is the code, the only
explanation would be pspecs->data==NULL. This would mean that the v4lsrc or
v4l2src have no "device" property. For now I added a check for pspec!=NULL. Not
sure what to do with the bug though.

const GParamSpec *
gst_property_probe_get_property (GstPropertyProbe * probe, const gchar * name)
{
  const GList *pspecs = gst_property_probe_get_properties (probe);

  g_return_val_if_fail (probe != NULL, NULL);
  g_return_val_if_fail (name != NULL, NULL);

  while (pspecs) {
    const GParamSpec *pspec = pspecs->data;

    if (!strcmp (pspec->name, name))
      return pspec;

    pspecs = pspecs->next;
  }

  return NULL;
}


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=532864.




More information about the Gstreamer-bugs mailing list