[Bug 791059] New: gstbasesrc: add protection for some miscellaneous 'create' method, otherwise coredump in gst_base_src_do_sync.

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Dec 1 08:18:23 UTC 2017


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

            Bug ID: 791059
           Summary: gstbasesrc: add protection for some miscellaneous
                    'create' method, otherwise coredump in
                    gst_base_src_do_sync.
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: jun.xie at samsung.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

gstbasesrc: add protection for some miscellaneous 'create' method, otherwise
coredump in gst_base_src_do_sync.

if 'create' method return GST_FLOW_OK but with NULL gstbuffer, coredump in
gst_base_src_do_sync.


an example backtrace as below
(gdb)bt
#0  gst_base_src_do_sync (buffer=<optimized out>, basesrc=0xaa7ff4a0) at
/usr/src/debug/gstreamer-1.6.1/libs/gst/base/gstbasesrc.c:2205
#1  gst_base_src_get_range (src=src at entry=0xaa7ff4a0, offset=4097113,
length=<optimized out>, length at entry=32768, buf=buf at entry=0xaa0fc45c) at
/usr/src/debug/gstreamer-1.6.1/libs/gst/base/gstbasesrc.c:2559
#2  0xb3cd9d8a in gst_base_src_getrange (pad=<optimized out>,
parent=0xaa7ff4a0, offset=4097113, length=32768, buf=0xaa0fc45c) at
/usr/src/debug/gstreamer-1.6.1/libs/gst/base/gstbasesrc.c:2720
#3  0xb6697496 in gst_pad_get_range_unchecked (pad=pad at entry=0xaccb3aa8,
offset=4097113, size=size at entry=32768, buffer=buffer at entry=0xaa0fc4dc) at
/usr/src/debug/gstreamer-1.6.1/gst/gstpad.c:4545
#4  0xb669d42e in gst_pad_pull_range (pad=0xaa172430, offset=<optimized out>,
size=32768, buffer=0xaa0fc564) at
/usr/src/debug/gstreamer-1.6.1/gst/gstpad.c:4784
#5  0xb6697496 in gst_pad_get_range_unchecked (pad=pad at entry=0xa8502d40,
offset=4097113, size=size at entry=32768, buffer=buffer at entry=0xaa0fc5e4) at
/usr/src/debug/gstreamer-1.6.1/gst/gstpad.c:4545
#6  0xb669d42e in gst_pad_pull_range (pad=pad at entry=0xa850b038,
offset=<optimized out>, size=size at entry=32768, buffer=buffer at entry=0xaa0fc68c)
at /usr/src/debug/gstreamer-1.6.1/gst/gstpad.c:4784
#7  0xb668b2f0 in gst_proxy_pad_getrange_default (pad=0xaa76b460,
parent=<optimized out>, offset=<optimized out>, size=32768, buffer=0xaa0fc68c)
at /usr/src/debug/gstreamer-1.6.1/gst/gstghostpad.c:184
#8  0xb6697496 in gst_pad_get_range_unchecked (pad=pad at entry=0xaa76b460,
offset=4097113, size=size at entry=32768, buffer=buffer at entry=0xaa0fc70c) at
/usr/src/debug/gstreamer-1.6.1/gst/gstpad.c:4545
#9  0xb669d42e in gst_pad_pull_range (pad=0xaccb36b8, offset=<optimized out>,
size=32768, buffer=0xaa0fc794) at
/usr/src/debug/gstreamer-1.6.1/gst/gstpad.c:4784
#10 0xb6697496 in gst_pad_get_range_unchecked (pad=pad at entry=0xaa172ac0,
offset=4097113, size=size at entry=32768, buffer=buffer at entry=0xaa0fc814) at
/usr/src/debug/gstreamer-1.6.1/gst/gstpad.c:4545
#11 0xb669d42e in gst_pad_pull_range (pad=0xa85022c0, offset=<optimized out>,
size=size at entry=32768, buffer=0xaa0fc888, buffer at entry=0xaa0fc880) at
/usr/src/debug/gstreamer-1.6.1/gst/gstpad.c:4784



add protection for robustness

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