On 2014-01-08 03:25:43 +0100, Luca Barbato wrote: > From: Tomas Härdin <[email protected]> > > Signed-off-by: Luca Barbato <[email protected]> > --- > libavformat/mxfdec.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c > index 8c0c018..8fa2a89 100644 > --- a/libavformat/mxfdec.c > +++ b/libavformat/mxfdec.c > @@ -1803,6 +1803,9 @@ static int mxf_read_local_tags(MXFContext *mxf, > KLVPacket *klv, MXFMetadataReadF > /* Accept the 64k local set limit being exceeded (Avid). Don't accept > * it extending past the end of the KLV though (zzuf5.mxf). */ > if (avio_tell(pb) > klv_end) { > + if (ctx_size) > + av_free(ctx); > + > av_log(mxf->fc, AV_LOG_ERROR, > "local tag %#04x extends past end of local set @ > %#"PRIx64"\n", > tag, klv->offset);
ok Janne _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
