]> git.sesse.net Git - ffmpeg/commit
avcodec/dpx: Check bits_per_color earlier
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 11 Apr 2021 19:04:12 +0000 (21:04 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 17 Apr 2021 14:53:17 +0000 (16:53 +0200)
commitc093eb30311b7148a4da1c7555498187c8cdf0db
tree1262c062c75d8d9afc7f95accb029e152fa97b76
parent6c65e499909016ff45c207c149f287ee5b3cf808
avcodec/dpx: Check bits_per_color earlier

Fixes: shift exponent 251 is too large for 32-bit type 'int'
Fixes: 32147/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DPX_fuzzer-5519111675314176
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dpx.c