[Bug 662871] New: Crash in theoradec when using uridecodebin and filtered caps

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Oct 27 11:09:59 PDT 2011


https://bugzilla.gnome.org/show_bug.cgi?id=662871
  GStreamer | gstreamer (core) | git

           Summary: Crash in theoradec when using uridecodebin and
                    filtered caps
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: vincent.penquerch at collabora.co.uk
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


It seems the pad alloc gets us a 0 byte buffer when we asked for a frame sized
one, and the memcpy overwrites what should not be overwritten.

Repro command line:

gst-launch-0.10 uridecodebin uri=file://wherever ! 'video/x-raw-yuv' !
ffmpegcolorspace ! 'video/x-raw-rgb' ! ximagesink


Introduced by:

commit 341d7a4c0dbd69f86faaf1ffd2e94e99bac6f8c9
Author: Sjoerd Simons <sjoerd.simons at collabora.co.uk>
Date:   Wed Jul 20 14:05:27 2011 +0200

    capsfilter: don't assume _get_caps still has to be

    _set_caps only gets called when the buffer is actually pushed, so there
    is a reasonably big window between when the initial caps are retrieved
    and when the caps are set on our src pad. So we can't assume the not
    having negotiated caps on our src pad means _get_caps still has to be
    called.

    Instead simply always suggest the new caps on buffer_alloc.

(or at least that's what git bisect points to).

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list