vorbisdec: Error on bark_map_size equal to 0.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 10 Jan 2013 23:54:12 +0000 (00:54 +0100)
committerReinhard Tartler <siretart@tauware.de>
Sat, 9 Mar 2013 17:54:28 +0000 (18:54 +0100)
commite050af9a809bd4e223c89e280ebd94da0e1034b5
tree3547c6fdefdf9bd937646b6c0d8e35a1f918f464
parent29a2fdb184b13efb7007d4b631cae2c35001c509
vorbisdec: Error on bark_map_size equal to 0.

The value is used to calculate output LSP curve and a division by zero
and out of array accesses would occur.

CVE-2013-0894

CC: libav-stable@libav.org
Reported-by: Dale Curtis <dalecurtis@chromium.org>
Found-by: inferno@chromium.org
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit 11dcecfcca0eca1a571792c4fa3c21fb2cfddddc)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
(cherry picked from commit 494ddd377ada76ed555f7a3f49391455daa099c9)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/vorbisdec.c