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 690214088C for ; Thu, 23 Dec 2021 23:08:26 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5220E68B1D4; Fri, 24 Dec 2021 01:08:23 +0200 (EET) Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6694768B187 for ; Fri, 24 Dec 2021 01:08:16 +0200 (EET) Received: from 301de4447f55623bb5f04e9d71fc65fe ([1.152.150.102]) (authenticated (0 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id 1BNN82cD002953 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Thu, 23 Dec 2021 23:08:09 GMT Date: Fri, 24 Dec 2021 10:07:58 +1100 From: Peter Ross To: FFmpeg development discussions and patches Message-ID: Mail-Followup-To: FFmpeg development discussions and patches References: <20211223211527.20408-1-michael@niedermayer.cc> <20211223211527.20408-5-michael@niedermayer.cc> MIME-Version: 1.0 In-Reply-To: <20211223211527.20408-5-michael@niedermayer.cc> Subject: Re: [FFmpeg-devel] [PATCH 5/5] avformat/mvdec: Check bytes_per_sample 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="===============8822271438253121118==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============8822271438253121118== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VEgcpjVQdDG1W5Zb" Content-Disposition: inline --VEgcpjVQdDG1W5Zb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 23, 2021 at 10:15:27PM +0100, Michael Niedermayer wrote: > Fixes: division by zero > Fixes: 42814/clusterfuzz-testcase-minimized-ffmpeg_dem_MV_fuzzer-47870142= 37552640 >=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 | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/libavformat/mvdec.c b/libavformat/mvdec.c > index 1a5012e5076..390f6ba4de8 100644 > --- a/libavformat/mvdec.c > +++ b/libavformat/mvdec.c > @@ -366,6 +366,9 @@ static int mv_read_header(AVFormatContext *avctx) > avpriv_request_sample(avctx, "Audio compression (format %i)"= , v); > } > =20 > + if (bytes_per_sample <=3D 0) > + return AVERROR_INVALIDDATA; > + > if (set_channels(avctx, ast, avio_rb32(pb)) < 0) > return AVERROR_INVALIDDATA; please apply. -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) --VEgcpjVQdDG1W5Zb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSpB+AvpuUM0jTNINJnYHnFrEDdawUCYcUBSgAKCRBnYHnFrEDd a2cYAJ4yMkpprnDuDLJOD5+e9LGbM2bPjwCgtTiaw2tzTWxuA8+9hWZl78fKUZY= =WIiy -----END PGP SIGNATURE----- --VEgcpjVQdDG1W5Zb-- --===============8822271438253121118== 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". --===============8822271438253121118==--