bufferlist: Prevent gst_buffer_list_foreach() from modifying non-writeable lists
authorSebastian Dröge <sebastian@centricular.com>
Fri, 29 Jun 2018 05:16:28 +0000 (07:16 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 9 Jul 2018 07:45:45 +0000 (09:45 +0200)
commitcb51bd6b31a0c181b13b5bbe9a6b2ebae656cb35
treec883e54fbfe055460f74fa16175cc35f0d0df587
parent111faa58c0dfdaf710b3f3958238b88f22bec49a
bufferlist: Prevent gst_buffer_list_foreach() from modifying non-writeable lists

Previously gst_buffer_list_foreach() could modify (drop or replace)
buffers in non-writable lists, which could cause all kinds of problems
if other code also has a reference to the list and assumes that it stays
the same.

https://bugzilla.gnome.org/show_bug.cgi?id=796692
gst/gstbufferlist.c
tests/check/gst/gstbufferlist.c