avcodec/xsubdec: fix overflow in alpha handling
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 23 Oct 2019 20:08:37 +0000 (22:08 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Nov 2019 16:27:19 +0000 (17:27 +0100)
commit9ea997395909907f569787d4ba5b96352ad31a80
tree04c4cf70a0a902348ad7154a04a6e4aeae82a127
parent32b3c8ce7d050210d210511cdb8c6644664a70ab
avcodec/xsubdec: fix overflow in alpha handling

Fixes: left shift of 255 by 24 places cannot be represented in type 'int'
Fixes: 18368/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_XSUB_fuzzer-5702665442426880

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/xsubdec.c