avcodec/pcx: Check for end of input in pcx_rle_decode() and propagate error
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 15 Sep 2018 20:57:59 +0000 (22:57 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 19 Sep 2018 21:08:20 +0000 (23:08 +0200)
commit7ed8d5cfd94a53cca3599d40d2d9d2a8ee6f1bb8
treef0f717a998cc43d10bb4da256417287298ad7c6b
parent86e76762fc73ad2b21243c103b41184d0f722ce1
avcodec/pcx: Check for end of input in pcx_rle_decode() and propagate error

Fixes: Timeout
Fixes: 10279/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PCX_fuzzer-5729311395414016

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