avcodec/iff: Check available space before entering loop in decode_long_vertical_delta...
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 23 Oct 2019 21:31:03 +0000 (23:31 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Nov 2019 16:26:28 +0000 (17:26 +0100)
commit32b3c8ce7d050210d210511cdb8c6644664a70ab
tree1d1d2161d23b6e58872bd5a4cc4557228564eec7
parent1c038c5c63375883a8a94332cffd701c4cb1301a
avcodec/iff: Check available space before entering loop in decode_long_vertical_delta2() / decode_long_vertical_delta()

Fixes: Timeout (31sec -> 41ms)
Fixes: 18380/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_IFF_ILBM_fuzzer-5645210121404416

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