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>
Fri, 15 Jun 2018 20:31:13 +0000 (22:31 +0200)
commit58a03420be8d0a57836d906fa5887bb0824928d6
treefcde909714a9d9184e924e2f413bbd4e4f5517d2
parentcbe442048fcc8fbdc50f9cf518f641d60f8765e7
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