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 4D1B44541C for ; Sat, 28 Jan 2023 19:51:17 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 19ACE68BE70; Sat, 28 Jan 2023 21:51:14 +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 A70C668BCED for ; Sat, 28 Jan 2023 21:51:07 +0200 (EET) Received: (Authenticated sender: michael@niedermayer.cc) by mail.gandi.net (Postfix) with ESMTPSA id 5B48D20004 for ; Sat, 28 Jan 2023 19:51:06 +0000 (UTC) Date: Sat, 28 Jan 2023 20:51:05 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20230128195105.GH1949656@pb2> References: <20230122000222.18719-1-michael@niedermayer.cc> MIME-Version: 1.0 In-Reply-To: Subject: Re: [FFmpeg-devel] [PATCH 1/2] avcodec/utils: use 32pixel alignment for bink 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="===============1698116260069983858==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============1698116260069983858== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="BLwZsoChvJp3+clz" Content-Disposition: inline --BLwZsoChvJp3+clz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 27, 2023 at 10:59:38AM +1100, Peter Ross wrote: > On Sun, Jan 22, 2023 at 01:02:21AM +0100, Michael Niedermayer wrote: > > bink supports 16x16 blocks in chroma planes thus we need to allocate en= ough. > > Fixes: out of array access > > Fixes: 55026/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BINK_fuz= zer-6013915371012096 > >=20 > > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz= /tree/master/projects/ffmpeg > > Signed-off-by: Michael Niedermayer > > --- > > libavcodec/utils.c | 2 ++ > > 1 file changed, 2 insertions(+) > >=20 > > diff --git a/libavcodec/utils.c b/libavcodec/utils.c > > index 2b63a498b9..87634e3711 100644 > > --- a/libavcodec/utils.c > > +++ b/libavcodec/utils.c > > @@ -243,6 +243,8 @@ void avcodec_align_dimensions2(AVCodecContext *s, i= nt *width, int *height, > > case AV_PIX_FMT_GBRAP16BE: > > w_align =3D 16; //FIXME assume 16 pixel per macroblock > > h_align =3D 16 * 2; // interlaced needs 2 macroblocks height > > + if (s->codec_id =3D=3D AV_CODEC_ID_BINKVIDEO) > > + w_align =3D 16*2; > > break; > > case AV_PIX_FMT_YUV411P: > > case AV_PIX_FMT_YUVJ411P: >=20 > please apply. will apply thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Frequently ignored answer#1 FFmpeg bugs should be sent to our bugtracker. U= ser questions about the command line tools should be sent to the ffmpeg-user ML. And questions about how to use libav* should be sent to the libav-user ML. --BLwZsoChvJp3+clz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCY9V8oQAKCRBhHseHBAsP q13wAJ4mPcpRCU65tBi1yU9bbmfF/ashqQCgmKv/0RuRLQolGcs/iDASSTDFKTc= =6aSA -----END PGP SIGNATURE----- --BLwZsoChvJp3+clz-- --===============1698116260069983858== 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". --===============1698116260069983858==--