avcodec/exr: skip bottom clearing loop when its outside the image
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 24 Oct 2020 22:23:12 +0000 (00:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 22 Nov 2020 16:45:17 +0000 (17:45 +0100)
commitb0a8b40294ea212c1938348ff112ef1b9bf16bb3
tree04c7809e30cd979c00be76ec9c1cf86be73acf78
parent3e5959b3457f7f1856d997261e6ac672bba49e8b
avcodec/exr: skip bottom clearing loop when its outside the image

Fixes: signed integer overflow: 1633771809 * 32960 cannot be represented in type 'int'
Fixes: 26532/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_fuzzer-5613925708857344

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