[FFmpeg-devel] [PATCH] avformat/dhav: Limit get_duration() iterations

Michael Niedermayer michael at niedermayer.cc
Mon Nov 15 17:04:14 EET 2021


On Sun, Nov 14, 2021 at 07:36:59PM +0000, Kieran Kunhya wrote:
> > diff --git a/libavformat/dhav.c b/libavformat/dhav.c
> > index b6bb25204c2..6c1cdde32c9 100644
> > --- a/libavformat/dhav.c
> > +++ b/libavformat/dhav.c
> > @@ -234,12 +234,13 @@ static int64_t get_duration(AVFormatContext *s)
> >      int64_t start_pos = avio_tell(s->pb);
> >      int64_t start = 0, end = 0;
> >      struct tm timeinfo;
> > +    int max_interations = 100000;
> >
> 
> I don't think this should be allowed.

i dont like it either
do you have a better idea ?


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you think the mosad wants you dead since a long time then you are either
wrong or dead since a long time.
-------------- 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/20211115/27020e84/attachment.sig>


More information about the ffmpeg-devel mailing list