[gstreamer-bugs] [Bug 575256] New: rtspsrc fails to resolve hostnames

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Fri Mar 13 07:44:50 PDT 2009


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=575256

  GStreamer | gst-plugins-base | Ver: git
           Summary: rtspsrc fails to resolve hostnames
           Product: GStreamer
           Version: git
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: frol at hupp.se
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


The function do_resolve() in gstrtspconnection.c returns a pointer to data in a
local buffer. When the caller references this pointer it may no longer contain
the correct data.

static const gchar *
do_resolve (const gchar * host)
{
...
  gchar ipbuf[INET_ADDRSTRLEN];
...
  ip = inet_ntop (AF_INET, (struct in_addr *) addrs[0], ipbuf,
        sizeof (ipbuf));
...
  return ip;
...
}

The return value of inet_ntop() is a pointer to ipbuf, which then is returned
as the result from do_resolve(). This bug prevents me from using rtspsrc with
hostnames at the moment (ip addresses work). A simple workaround is to change
the ipbuf declaration to static.


-- 
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=575256.




More information about the Gstreamer-bugs mailing list