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 06:43:43 +0000 (08:43 +0200)
commit9aaaeba45c41cf2b3fa4100abbdee7437428f93c
tree805987ecb0483217bb795520618b106192cd217b
parente46cf805b10070327026f8e2880fe29e5e9ac1af
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>
libavcodec/vorbis.c
libavcodec/vorbis.h
libavcodec/vorbisdec.c
libavcodec/vorbisenc.c