On Sun, Sep 20, 2020 at 10:26:06PM +0200, Michael Niedermayer wrote: > Fixes: timeout (243sec -> a few ms) > Fixes: > 25716/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-5764093666131968 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > --- > libavformat/vividas.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/libavformat/vividas.c b/libavformat/vividas.c > index 36c007b0d2..7917df5d64 100644 > --- a/libavformat/vividas.c > +++ b/libavformat/vividas.c > @@ -293,6 +293,8 @@ static int track_header(VividasDemuxContext *viv, > AVFormatContext *s, uint8_t * > > for (i=0;i<val_1;i++) { > int c = avio_r8(pb); > + if (avio_feof(pb)) > + return AVERROR_EOF; > for (j=0;j<c;j++) { > if (avio_feof(pb)) > return AVERROR_EOF; > --
Generally acceptable. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".