[Gstreamer-bugs] [Bug 142555] New: - wavparse doesn't handle truncated files gracefully

bugzilla-daemon at bugzilla.gnome.org bugzilla-daemon at bugzilla.gnome.org
Fri May 14 10:44:56 PDT 2004


http://bugzilla.gnome.org/show_bug.cgi?id=142555
GStreamer | gst-plugins | Ver: HEAD CVS

           Summary: wavparse doesn't handle truncated files gracefully
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins
        AssignedTo: gstreamer-maint at bugzilla.gnome.org
        ReportedBy: teuf at users.sourceforge.net
         QAContact: gstreamer-maint at bugzilla.gnome.org


I found what could be a bug in wavparse or riff-read when using it
though. When downloading this file, I stopped the download before it
completed, but tried to play the file.
gst-launch then complains about trying to push a NULL buffer. 
After gdb-ing a bit, I found that wavparse calls
gst_riff_read_element_data asking it to read XXX bytes, this function
can't read that many bytes so it returns NULL and then wavparse pushes
that NULL. It probably happens when reaching the end of my truncated
file even though I didn't check.
I was wondering if it was intentional that gst_riff_read_element_data
basically does:
if ((got = gst_bytestream_peek (riff->bs, &buf, length)) != length) {
        return NULL;
}
return buf;

or if it should be more clever? (for example, return buffers whose
length is smaller than the length asked to the function, or try a bit
harder to get a full buffer).

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.




More information about the Gstreamer-bugs mailing list