[FFmpeg-devel] [PATCH] avformat/mov: Check for duplicate clli

Michael Niedermayer michael at niedermayer.cc
Tue Sep 14 18:26:24 EEST 2021


On Mon, Sep 13, 2021 at 06:07:17PM -0300, James Almer wrote:
> On 9/13/2021 6:04 PM, Michael Niedermayer wrote:
> > Fixes: memleak
> > Fixes: 35261/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-4869656287510528
> > 
> > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> >   libavformat/mov.c | 3 +++
> >   1 file changed, 3 insertions(+)
> > 
> > diff --git a/libavformat/mov.c b/libavformat/mov.c
> > index c5583e07c79..343c0c0ee35 100644
> > --- a/libavformat/mov.c
> > +++ b/libavformat/mov.c
> > @@ -5485,6 +5485,9 @@ static int mov_read_clli(MOVContext *c, AVIOContext *pb, MOVAtom atom)
> >           return AVERROR_INVALIDDATA;
> >       }
> > +    if (sc->coll)
> > +        return AVERROR_INVALIDDATA;
> 
> mov_read_coll() ignores any duplicate box, after emitting a warning. Maybe
> the same should be done here.

will apply with that change

[...]

thx
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are best at talking, realize last or never when they are wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210914/fe503989/attachment.sig>


More information about the ffmpeg-devel mailing list