Reject multiple headers of the same type.
authorTim Terriberry <tterribe@xiph.org>
Wed, 7 Jan 2015 03:16:56 +0000 (03:16 +0000)
committerTim Terriberry <tterribe@xiph.org>
Wed, 7 Jan 2015 03:16:56 +0000 (03:16 +0000)
commitc761e218422b7f656635466fea013d9b4ba686f3
tree323a84f390f6860c3c8a6c2382dc1880c836967f
parent7d9f8459036915c3da71d5d13ce9244ad078e701
Reject multiple headers of the same type.

A common application pattern is to call vorbis_synthesis_headerin()
 and count how many times it succeeds.
If you feed it multiple valid comment headers, they will all
 succeed, meaning you can be fooled into think you have a valid
 Vorbis file despite never seeing a setup header.
This patch makes libvorbis reject multiple headers of the same type,
 preventing this from occurring.

svn path=/trunk/vorbis/; revision=19426
lib/info.c