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 3E505421B7 for ; Thu, 16 Dec 2021 20:03:47 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 72E9968AF54; Thu, 16 Dec 2021 22:03:45 +0200 (EET) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C199368A466 for ; Thu, 16 Dec 2021 22:03:38 +0200 (EET) Received: from localhost (213-47-68-29.cable.dynamic.surfer.at [213.47.68.29]) (Authenticated sender: michael@niedermayer.cc) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id E26426000B for ; Thu, 16 Dec 2021 20:03:37 +0000 (UTC) Date: Thu, 16 Dec 2021 21:03:36 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20211216200336.GA2829255@pb2> References: <20211215173713.7047-1-michael@niedermayer.cc> <20211215173713.7047-2-michael@niedermayer.cc> MIME-Version: 1.0 In-Reply-To: Subject: Re: [FFmpeg-devel] [PATCH 2/2] avformat/mvdec: Use 64 bit in timestamp computation 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="===============0247279509693252842==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============0247279509693252842== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wx5xIorIUvKY4Jz9" Content-Disposition: inline --wx5xIorIUvKY4Jz9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 16, 2021 at 11:26:23AM +1100, Peter Ross wrote: > On Wed, Dec 15, 2021 at 06:37:13PM +0100, Michael Niedermayer wrote: > > Fixes: division by zero > > Fixes: 42198/clusterfuzz-testcase-minimized-ffmpeg_dem_MV_fuzzer-505436= 6405492736.fuzz > > Fixes: 42222/clusterfuzz-testcase-minimized-ffmpeg_dem_MV_fuzzer-456124= 9331970048 > >=20 > > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz= /tree/master/projects/ffmpeg > > Signed-off-by: Michael Niedermayer > > --- > > libavformat/mvdec.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >=20 > > diff --git a/libavformat/mvdec.c b/libavformat/mvdec.c > > index 8b54a9ab045..5d184f20a49 100644 > > --- a/libavformat/mvdec.c > > +++ b/libavformat/mvdec.c > > @@ -381,7 +381,7 @@ static int mv_read_header(AVFormatContext *avctx) > > avio_skip(pb, 8); > > av_add_index_entry(ast, pos, timestamp, asize, 0, AVINDEX_= KEYFRAME); > > av_add_index_entry(vst, pos + asize, i, vsize, 0, AVINDEX_= KEYFRAME); > > - timestamp +=3D asize / (ast->codecpar->channels * bytes_pe= r_sample); > > + timestamp +=3D asize / (ast->codecpar->channels * (uint64_= t)bytes_per_sample); > > } > > } else if (!version && avio_rb16(pb) =3D=3D 3) { > > avio_skip(pb, 4); > > --=20 > > 2.17.1 >=20 > please apply. will apply thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Never trust a computer, one day, it may think you are the virus. -- Compn --wx5xIorIUvKY4Jz9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCYbublAAKCRBhHseHBAsP q2NhAJ4ykpAyQSvpjEavIs8gk0tTPR7aVgCdFWBXQlwwFUjv+Vb2pnWTdQNaWP4= =chUe -----END PGP SIGNATURE----- --wx5xIorIUvKY4Jz9-- --===============0247279509693252842== 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". --===============0247279509693252842==--