avformat/mxfdec: Check component_depth in mxf_get_color_range()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 4 Dec 2021 21:32:57 +0000 (22:32 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 9 Dec 2021 12:12:45 +0000 (13:12 +0100)
commita4af92d7cb044424d31a99fc2f8a091f882036a5
treee8078952af7d0de55e83173152b4a9ef9ea05f90
parentac2b34abbf93c1fa11ee7e5667ce6e6d4c4760a2
avformat/mxfdec: Check component_depth in mxf_get_color_range()

Fixes: shift exponent 4294967163 is too large for 32-bit type 'int'
Fixes: 41449/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-6183636217495552

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>
libavformat/mxfdec.c