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)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 11 Aug 2019 18:27:59 +0000 (19:27 +0100)
commit9613fe15fb7bb81902d634fd010ac8cb28ae82f7
treed0306a8fd68fae614cd4eaa0f0cb61e335afd3b4
parent93a374d18e09d00f903dedee2a3427218691f6b0
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