[Bug 769819] New: qtdemux: Fix segmentation fault in check_update_duration ()

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sat Aug 13 02:26:02 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=769819

            Bug ID: 769819
           Summary: qtdemux: Fix segmentation fault in
                    check_update_duration ()
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: sh.yang at lge.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

qtdemux: Fix segmentation fault in check_update_duration ()

In the gst_qtdemux_stream_flush_segments_data () method, all segments
related variables should be set as default.

When check_update_duration () method was called with following condition,
demux will try to do invalid memory access
* dummy segment had been created previously.
  This will allocate memory for stream->segments with setting dummy_segment =
TRUE
* gst_qtdemux_stream_flush_segments_data () has been called by some reason.
  This will free stream->segments without setting dummy_segment = FALSE

Note that, check_update_duration () will try to update duration of
stream->segments
if dummy_segment was set to TRUE

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