GNOME Bugzilla – Bug 789506
avidemux: Handled buffer mapping failures
Last modified: 2018-05-07 16:06:24 UTC
Buffer mapping failure must be handled at below code:- File: gst-plugins-good-1.12.3/gst/avi/gstavidemux.c Failure of function gst_buffer_map must be handled at all places.
Created attachment 362308 [details] [review] [PATCH] gst-plugins-good: gstavidemux: Handled buffer mapping failures Please review the patch attached to fix the issue and share your feedback.
Do we really need to test buffer mapping for buffers allocated with the sysmem allocator? Esp. those we allocated ourselves?
If we allocated them ourselves, no. Otherwise the mapping can in theory fail (ex: multiple memories getting merged together, but the allocation for the bigger memory area fails).
See comment 2