avcodec/qpeg: Optimize long runs in qpeg_decode_intra() not spanning a full row
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 7 Jan 2019 01:44:50 +0000 (02:44 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 7 Jan 2019 22:21:47 +0000 (23:21 +0100)
commit038d291b70bffa550cde552f8325e1b9f71f0646
tree3230061a216fc7eb718435cffcf6ea5ab504895f
parente9564f7feaf25b5c0ccd73e835b69a0dbba06786
avcodec/qpeg: Optimize long runs in qpeg_decode_intra() not spanning a full row

Fixes: Timeout
Fixes: 11354/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_QPEG_fuzzer-5766275943366656

Before: Executed clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_QPEG_fuzzer-5766275943366656 in 9470 ms
After : Executed clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_QPEG_fuzzer-5766275943366656 in  134 ms

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/qpeg.c