dvdlpcmdec: fix invalid read beyond channel position array
authorTim-Philipp Müller <tim@centricular.com>
Sat, 26 Sep 2015 08:23:05 +0000 (09:23 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 26 Sep 2015 08:24:25 +0000 (09:24 +0100)
commitd57b0971987598c73ce96c9026d422c94712caae
tree40147034809210d2b4b5bc835ac36b9e2661da68
parentd7f78391b4490b896df2f06d7c73676a7fc616f6
dvdlpcmdec: fix invalid read beyond channel position array

We would always copy sizeof(sorted_position) bytes, which is
for 8 channels, but if we have less than 8 channels the
position array we copy from will only have allocated space
for channel channels, so we would read beyond the input
array in some cases.
gst/dvdlpcmdec/gstdvdlpcmdec.c