Commit df9a45ca authored by reimar's avatar reimar

Make sure that values generated for ff_vorbis_len2vlc in

vorbis_parse_setup_hdr_codebooks are in the valid range (<=32).


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19373 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 805e9336
...@@ -292,7 +292,7 @@ static int vorbis_parse_setup_hdr_codebooks(vorbis_context *vc) { ...@@ -292,7 +292,7 @@ static int vorbis_parse_setup_hdr_codebooks(vorbis_context *vc) {
AV_DEBUG(" ordered, current length: %d \n", current_length); //FIXME AV_DEBUG(" ordered, current length: %d \n", current_length); //FIXME
used_entries=entries; used_entries=entries;
for(;current_entry<used_entries;++current_length) { for(;current_entry<used_entries && current_length <= 32;++current_length) {
uint_fast16_t i, number; uint_fast16_t i, number;
AV_DEBUG(" number bits: %d ", ilog(entries - current_entry)); AV_DEBUG(" number bits: %d ", ilog(entries - current_entry));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment