[Bug 769765] v4l2: Sanitise buffer sizes provided by v4l2
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Tue Nov 1 18:13:19 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=769765
Sebastian Dröge (slomo) <slomo at coaxion.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |slomo at coaxion.net
Resolution|--- |FIXED
--- Comment #7 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
commit 56b1d088a9a6c69f8c1f3067bc261e88632fae4a
Author: William Manley <will at williammanley.net>
Date: Sat Oct 8 18:11:17 2016 +0200
v4l2: Warn, don't assert if v4l gives us a buffer with a too large size
I've seen problems where the `bytesused` field of `v4l2_buffer` would be
a silly number causing the later call to:
gst_memory_resize (group->mem[i], 0, group->planes[i].bytesused);
to result in this error to be printed:
(pulsevideo:11): GStreamer-CRITICAL **: gst_memory_resize: assertion
'size + mem->offset + offset <= mem->maxsize' failed
besides causing who-knows what other problems.
--
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