mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/bitstream: assert that no integer overflow happened when writing codes in build_table()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
35fe88bb51
commit
622d463000
@ -232,6 +232,7 @@ static int build_table(VLC *vlc, int table_nb_bits, int nb_codes,
|
||||
/* note: realloc has been done, so reload tables */
|
||||
table = &vlc->table[table_index];
|
||||
table[j][0] = index; //code
|
||||
av_assert0(table[j][0] == index);
|
||||
i = k-1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user