siren: fix a global buffer overflow spotted by asan
authorFabrice Bellet <fabrice@bellet.info>
Mon, 22 Jul 2019 08:00:00 +0000 (08:00 +0000)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 22 Jul 2019 08:00:00 +0000 (08:00 +0000)
commit96004cd75111f742089b5f9554d20d18f9e83444
treebac6ecb7f51a3081b80382cc18f9ce32f4dc6b1f
parent7de6b5d48161cb4982efe7fd04c8be408ca85424
siren: fix a global buffer overflow spotted by asan

This patch just enforces boudaries for the access to the
standard_deviation array (64 floats). Such case can be
seen with a corrupted stream, where there's no hope to
obtain a valid decoded frame anyway.

https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/1002
gst/siren/huffman.c