bufferlist: fix abort due to underflow when creating 0-sized list
authorTim-Philipp Müller <tim@centricular.com>
Sat, 5 May 2018 14:16:45 +0000 (16:16 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 5 May 2018 14:20:05 +0000 (16:20 +0200)
commita5ecb465a979eec42f17684f60347419d44a79af
tree548fe01fbe4f65f2631ba5ea45036e120f393e05
parentd06895ce5d09dd1cddabba292ed2429d2a67b58d
bufferlist: fix abort due to underflow when creating 0-sized list

gst_buffer_list_new_sized(0) will cause an underflow in a calculation
which then makes it try to allocate huge amounts of memory, which
may lead to aborts.

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