libavcodec/pnm_parser: do not lose skipped parts in reporting of how much was consumed
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 3 Sep 2018 21:42:22 +0000 (23:42 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 11 Sep 2018 22:52:01 +0000 (00:52 +0200)
commit4356e03fd651b0f2b9463c4bfee3d9ec5d819d61
treebf319617804575d97292ef22e8a9368cb69b1370
parent74af6ae02100ff05f8a09fde5db4cd06509cdfba
libavcodec/pnm_parser: do not lose skipped parts in reporting of how much was consumed

Fixes: Timeout
Fixes: 9759/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PPM_fuzzer-5655277650051072
Fixes: 9753/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PGMYUV_fuzzer-5764378543521792

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