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 491D14206F for ; Thu, 16 Dec 2021 00:27:41 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 95FDB68AE10; Thu, 16 Dec 2021 02:27:38 +0200 (EET) Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9BBB268A8B4 for ; Thu, 16 Dec 2021 02:27:32 +0200 (EET) Received: from 301de4447f55623bb5f04e9d71fc65fe ([1.152.138.190]) (authenticated (0 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id 1BG0QYq7007942 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Thu, 16 Dec 2021 00:27:22 GMT Date: Thu, 16 Dec 2021 11:26:23 +1100 From: Peter Ross To: FFmpeg development discussions and patches Message-ID: Mail-Followup-To: FFmpeg development discussions and patches References: <20211215173713.7047-1-michael@niedermayer.cc> <20211215173713.7047-2-michael@niedermayer.cc> MIME-Version: 1.0 In-Reply-To: <20211215173713.7047-2-michael@niedermayer.cc> 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="===============2396587186381933857==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============2396587186381933857== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bJlRWkk16dAXttzc" Content-Disposition: inline --bJlRWkk16dAXttzc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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-50543664= 05492736.fuzz > Fixes: 42222/clusterfuzz-testcase-minimized-ffmpeg_dem_MV_fuzzer-45612493= 31970048 >=20 > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/t= ree/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_KE= YFRAME); > av_add_index_entry(vst, pos + asize, i, vsize, 0, AVINDEX_KE= YFRAME); > - timestamp +=3D asize / (ast->codecpar->channels * bytes_per_= 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 please apply. -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) --bJlRWkk16dAXttzc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSpB+AvpuUM0jTNINJnYHnFrEDdawUCYbqHpwAKCRBnYHnFrEDd a0vqAJ9pIgZyPM/r/gDxQb8q7LO4P3lJmACgi4dUKdk0GWh1SZXc4k8eHKJw7Gc= =KdcQ -----END PGP SIGNATURE----- --bJlRWkk16dAXttzc-- --===============2396587186381933857== 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". --===============2396587186381933857==--