avcodec/4xm: Check for end of input in decode_p_block()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 12 Aug 2019 00:17:18 +0000 (02:17 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 13 Aug 2019 14:48:38 +0000 (16:48 +0200)
commit8f92eb05e063e6c4d6e36521020620d4e6e1c21d
tree37ae5c8398433b5729bec98ceb251b4c70cefd74
parent021f29506b493376d62cdb5b9cb66a6b85e5361f
avcodec/4xm: Check for end of input in decode_p_block()

Fixes: Timeout (81sec -> 0.2sec)
Fixes: 16169/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FOURXM_fuzzer-5662570416963584

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/4xm.c