mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
avcodec/pnm_parser: clear state if buffer is discarded
Fixes: Assertion failure Fixes: 14484/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PGMYUV_fuzzer-5150016408125440 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>
This commit is contained in:
parent
98541f7032
commit
3afdd3e11a
@ -69,6 +69,7 @@ retry:
|
||||
if (pnmctx.bytestream < pnmctx.bytestream_end) {
|
||||
if (pc->index) {
|
||||
pc->index = 0;
|
||||
pnmpc->ascii_scan = 0;
|
||||
} else {
|
||||
unsigned step = FFMAX(1, pnmctx.bytestream - pnmctx.bytestream_start);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user