avcodec/g2meet: Check RGB upper limit
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 27 Apr 2018 18:16:13 +0000 (20:16 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 9 Jul 2018 23:52:56 +0000 (01:52 +0200)
commitfc097bf1cd0af7bbab09e2f1af4ae39eb0ca4eea
tree71042e87a522ee733475e559514a26f3efa623f9
parentc10babcadc341b8bec6b16572e4373ae571af7e7
avcodec/g2meet: Check RGB upper limit

Fixes: runtime error: left shift of 1876744317 by 16 places cannot be represented in type 'int'
Fixes: 6799/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_G2M_fuzzer-5115274731716608

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 4dd2c8b9ea46b4e008a8bfc2077834428cd5a17c)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/g2meet.c