GNOME Bugzilla – Bug 768467
avidemux: do not increase num_streams when parse_stream fail
Last modified: 2018-11-03 15:10:21 UTC
Created attachment 330929 [details] [review] patch for this issue. Failure handling code in the function "gst_avi_demux_parse_stream()" increases num_streams of avi context. It's causing SIGSEGV because the stream data structure indexed by num_streams is not updated after initializing to 0 or NULL.
Created attachment 330930 [details] [review] Updated patch - add url of this page below commit message.
Review of attachment 330930 [details] [review]: This does not seem correct. The num_streams counter seems to be also used for knowing the "stream index", i.e. see the index handling in that function. If a stream is skipped because it fails parsing, we should probably make sure that using it elsewhere is just ignoring it instead of crashing later.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/285.