From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 8ADD3421BA for ; Fri, 25 Feb 2022 21:19:41 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CEA04689FD9; Fri, 25 Feb 2022 23:19:38 +0200 (EET) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 365BE68094F for ; Fri, 25 Feb 2022 23:19:32 +0200 (EET) Received: from localhost (213-47-68-29.cable.dynamic.surfer.at [213.47.68.29]) (Authenticated sender: michael@niedermayer.cc) by mail.gandi.net (Postfix) with ESMTPSA id 70ACC20002 for ; Fri, 25 Feb 2022 21:19:31 +0000 (UTC) Date: Fri, 25 Feb 2022 22:19:30 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20220225211930.GJ2829255@pb2> References: <20220214193934.22315-1-michael@niedermayer.cc> MIME-Version: 1.0 In-Reply-To: Subject: Re: [FFmpeg-devel] [PATCH 1/4] avformat/matroskadec: Check duration X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: multipart/mixed; boundary="===============3432259594278312618==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============3432259594278312618== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="PBTyxHmhcOifezWT" Content-Disposition: inline --PBTyxHmhcOifezWT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 14, 2022 at 08:56:51PM +0100, Andreas Rheinhardt wrote: > Michael Niedermayer: > > Fixes: -nan is outside the range of representable values of type 'long' > > Fixes: 44614/clusterfuzz-testcase-minimized-ffmpeg_dem_WEBM_DASH_MANIFE= ST_fuzzer-6216204841254912 > >=20 > > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz= /tree/master/projects/ffmpeg > > Signed-off-by: Michael Niedermayer > > --- > > libavformat/matroskadec.c | 2 ++ > > 1 file changed, 2 insertions(+) > >=20 > > diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c > > index 91f3567692..8f0c53a6bc 100644 > > --- a/libavformat/matroskadec.c > > +++ b/libavformat/matroskadec.c > > @@ -3065,6 +3065,8 @@ static int matroska_read_header(AVFormatContext *= s) > > =20 > > if (!matroska->time_scale) > > matroska->time_scale =3D 1000000; > > + if (isnan(matroska->duration)) > > + matroska->duration =3D 0; > > if (matroska->duration) > > matroska->ctx->duration =3D matroska->duration * matroska->tim= e_scale * > > 1000 / AV_TIME_BASE; >=20 > LGTM. will apply thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB If you fake or manipulate statistics in a paper in physics you will never get a job again. If you fake or manipulate statistics in a paper in medicin you will get a job for life at the pharma industry. --PBTyxHmhcOifezWT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCYhlH3gAKCRBhHseHBAsP qwcbAJwLGaE0oSXuVgdOLqzDXJcDc7rliQCfQFlhNjrHRMW1F28q2N2wxbzjnSE= =/sC6 -----END PGP SIGNATURE----- --PBTyxHmhcOifezWT-- --===============3432259594278312618== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". --===============3432259594278312618==--