avcodec/truemotion2: Check huffman code max bits
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 19 Nov 2018 22:47:13 +0000 (23:47 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 20 Nov 2018 23:33:38 +0000 (00:33 +0100)
commit77bf85515e59f7b17685fbbec943ff46f6217719
tree8cdf24858d83ea599777f408bf6c73a73e857053
parent3fc7b69496fd586a609f9c8a2f1ed17e46bf5fff
avcodec/truemotion2: Check huffman code max bits

Fixes: Timeout
Fixes: 10984/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-6643310750859264

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/truemotion2.c