Commit 96651e79 authored by Google Chrome's avatar Google Chrome Committed by Michael Niedermayer
Browse files

Fix book_idx check.

25_vorbis_floor0_index.patch by chrome.

Originally committed as revision 19984 to svn://
parent d70fa8f1
......@@ -553,12 +553,11 @@ static int vorbis_parse_setup_hdr_floors(vorbis_context *vc) {
uint_fast8_t book_idx;
for (idx=0;idx<floor_setup->data.t0.num_books;++idx) {
book_idx=get_bits(gb, 8);
if (book_idx>=vc->codebook_count)
return 1;
if (vc->codebooks[book_idx].dimensions > max_codebook_dim)
if (floor_setup->data.t0.book_list[idx]>vc->codebook_count)
return 1;
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