]> git.sesse.net Git - ffmpeg/commit
avcodec/mpc8huff: Make some arrays unsigned to prevent overflow
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 20 Jul 2019 13:51:25 +0000 (15:51 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 24 Jul 2019 13:32:15 +0000 (15:32 +0200)
commita081a6d201174026f7ff67835789e321164f132b
tree30489c0b56c24a29721ca35bcf28f4d750603460
parentb56031b992abc9953d8a774faa1ed36cf599162d
avcodec/mpc8huff: Make some arrays unsigned to prevent overflow

mpc8_q4_syms is an array of int8_t that is initialized using
values not in the range of an int8_t and that is only accessed via
a pointer to uint8_t in ff_init_vlc_sparse. The latter applies to all
the other *_bits and *_syms tables in mpc8huff.h, so make them all
unsigned.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpc8huff.h