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 EA47044F8F for ; Sun, 15 Jan 2023 02:44:30 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DBA3668BB48; Sun, 15 Jan 2023 04:44:27 +0200 (EET) Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DA8806807D9 for ; Sun, 15 Jan 2023 04:44:20 +0200 (EET) Received: from 4eb231a0d1b36cedda43a2a005befe4d ([1.152.228.23]) (authenticated (0 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id 30F2iDnF012782 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Sun, 15 Jan 2023 02:44:17 GMT Date: Sun, 15 Jan 2023 13:44:09 +1100 From: Peter Ross To: FFmpeg development discussions and patches Message-ID: Mail-Followup-To: FFmpeg development discussions and patches References: <20230113000138.9994-1-michael@niedermayer.cc> MIME-Version: 1.0 In-Reply-To: <20230113000138.9994-1-michael@niedermayer.cc> Subject: Re: [FFmpeg-devel] [PATCH 1/5] avcodec/wbmpdec: use remaining size not whole size 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="===============8856821956999630761==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============8856821956999630761== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5niGhbVt7UnBaRm8" Content-Disposition: inline --5niGhbVt7UnBaRm8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 13, 2023 at 01:01:34AM +0100, Michael Niedermayer wrote: > Fixes: out of array access > Fixes: 48567/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WBMP_fuzze= r-6652634692190208 > Fixes: 48567/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WBMP_fuzze= r-6653703453278208 > Fixes: 48567/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WBMP_fuzze= r-6668020758216704 > Fixes: 48567/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WBMP_fuzze= r-6684749875249152 >=20 > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/t= ree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer > --- > libavcodec/wbmpdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/libavcodec/wbmpdec.c b/libavcodec/wbmpdec.c > index 9638b55b94..8b105bc135 100644 > --- a/libavcodec/wbmpdec.c > +++ b/libavcodec/wbmpdec.c > @@ -72,7 +72,7 @@ static int wbmp_decode_frame(AVCodecContext *avctx, AVF= rame *p, > if (p->linesize[0] =3D=3D (width + 7) / 8) > bytestream2_get_buffer(&gb, p->data[0], height * ((width + 7) / = 8)); > else > - readbits(p->data[0], width, height, p->linesize[0], gb.buffer, g= b.buffer_end - gb.buffer_start); > + readbits(p->data[0], width, height, p->linesize[0], gb.buffer, g= b.buffer_end - gb.buffer); > =20 > p->key_frame =3D 1; > p->pict_type =3D AV_PICTURE_TYPE_I; please apply. -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) --5niGhbVt7UnBaRm8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSpB+AvpuUM0jTNINJnYHnFrEDdawUCY8NodAAKCRBnYHnFrEDd a9rKAJ9omS4+p8eJEcAQmZ8z8GeyFkenAACfYxQRuGJ+4NheurYxTIOaAmrKhuQ= =V7Da -----END PGP SIGNATURE----- --5niGhbVt7UnBaRm8-- --===============8856821956999630761== 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". --===============8856821956999630761==--