vorbis: Validate that the floor 1 X values contain no duplicates.
authorAlex Converse <alex.converse@gmail.com>
Tue, 5 Jun 2012 01:27:03 +0000 (18:27 -0700)
committerAnton Khirnov <anton@khirnov.net>
Sat, 6 Oct 2012 07:47:41 +0000 (09:47 +0200)
commit0e2f415adf5d8c0e8bbb210c3c2693315854718f
tree62cfacd85e435f4191cf8c6bbcb49317cddf7ba7
parenta4e277312cacfb78ef7583ed0b4fe4ccf5a0bcb1
vorbis: Validate that the floor 1 X values contain no duplicates.

Duplicate values in this vector are explicitly banned by the Vorbis I spec
and cause divide-by-zero crashes later on.
(cherry picked from commit ecf79c4d3e8baaf2f303278ef81db6f8407656bc)

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

Signed-off-by: Anton Khirnov <anton@khirnov.net>
(cherry picked from commit d6e250abfc36b239ef0c1fc9d45d588b853bfcb9)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/vorbis.c
libavcodec/vorbis.h
libavcodec/vorbis_dec.c
libavcodec/vorbis_enc.c