[Bug 754180] New: audiobasesrc/ringbuffer: Uses too small integers for segment counters

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Aug 27 07:22:33 PDT 2015


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

            Bug ID: 754180
           Summary: audiobasesrc/ringbuffer: Uses too small integers for
                    segment counters
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: major
          Priority: Normal
         Component: gst-plugins-base
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: slomo at coaxion.net
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

See https://github.com/EricssonResearch/openwebrtc/pull/456 for some
discussion. Problem is this code:
http://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/gst-libs/gst/audio/gstaudiobasesrc.c#n927

running_time_segment is only an integer (as required by g_atomic_int_*), and
will overflow after a while. And it will cause problems immediately if having a
huge running time, e.g. when explicitly setting base_time=0 and having a clock
with a high current time.


Not sure yet how to fix this as the segment counters are part of the public API
unfortunately, and also there are not atomic ops on 64 bit integers.

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