On Thu, Dec 26, 2024 at 11:39:10AM +0100, Marton Balint wrote:
> 
> 
> On Thu, 26 Dec 2024, Michael Niedermayer wrote:
> 
> > Fixes: use of uninitialized data
> > Fixes: 
> > 383825642/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5380168801124352
> > 
> > Found-by: continuous fuzzing process 
> > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> > Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc>
> > ---
> > libavformat/vqf.c | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/libavformat/vqf.c b/libavformat/vqf.c
> > index 4820e0817c3..79deb33744b 100644
> > --- a/libavformat/vqf.c
> > +++ b/libavformat/vqf.c
> > @@ -63,7 +63,8 @@ static void add_metadata(AVFormatContext *s, uint32_t tag,
> >     buf = av_malloc(len+1);
> >     if (!buf)
> >         return;
> > -    avio_read(s->pb, buf, len);
> > +    if (len != avio_read(s->pb, buf, len))
> > +        return;
> 
> You should propagate error codes.

will post a seperate patch

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Observe your enemies, for they first find out your faults. -- Antisthenes

Attachment: signature.asc
Description: PGP signature

_______________________________________________
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".

Reply via email to