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 319B247C78 for ; Sun, 15 Oct 2023 22:56:46 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DB19F68C94E; Mon, 16 Oct 2023 01:56:44 +0300 (EEST) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D26A868C61E for ; Mon, 16 Oct 2023 01:56:38 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 102A01BF204 for ; Sun, 15 Oct 2023 22:56:37 +0000 (UTC) Date: Mon, 16 Oct 2023 00:56:37 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20231015225637.GA3543730@pb2> References: <20231012232759.5352-1-michael@niedermayer.cc> MIME-Version: 1.0 In-Reply-To: X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH 1/3] avcodec/evc_ps: Check chroma_format_idc 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="===============6801375311706507889==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============6801375311706507889== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nLy6Cz1zLznoF4Q5" Content-Disposition: inline --nLy6Cz1zLznoF4Q5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 13, 2023 at 01:18:27AM +0100, Kieran Kunhya wrote: > On Fri, 13 Oct 2023 at 00:28, Michael Niedermayer > wrote: >=20 > > Fixes: out of array access > > Fixes: > > 62678/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-485826498435= 4816 > > > > Found-by: continuous fuzzing process > > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > > Signed-off-by > > : > > Michael Niedermayer > > --- > > libavcodec/evc_ps.c | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/libavcodec/evc_ps.c b/libavcodec/evc_ps.c > > index c11b92d1c5..19895d404d 100644 > > --- a/libavcodec/evc_ps.c > > +++ b/libavcodec/evc_ps.c > > @@ -179,6 +179,10 @@ int ff_evc_parse_sps(GetBitContext *gb, EVCParamSe= ts > > *ps) > > // 2 - 4:2:2 > > // 3 - 4:4:4 > > sps->chroma_format_idc =3D get_ue_golomb_31(gb); > > + if (sps->chroma_format_idc > 3) { > > + ret =3D AVERROR_INVALIDDATA; > > + goto fail; > > + } > > > > sps->pic_width_in_luma_samples =3D get_ue_golomb_long(gb); > > sps->pic_height_in_luma_samples =3D get_ue_golomb_long(gb); > > -- > > 2.17.1 > > >=20 > ok will apply thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB If you fake or manipulate statistics in a paper in physics you will never get a job again. If you fake or manipulate statistics in a paper in medicin you will get a job for life at the pharma industry. --nLy6Cz1zLznoF4Q5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZSxuJQAKCRBhHseHBAsP q+NTAJ9DSdXC6vvwJcMlPtF2BNYWS5IsNACeMKJWRYpyu/Pe99rSFIb+TcFGg+k= =T5JI -----END PGP SIGNATURE----- --nLy6Cz1zLznoF4Q5-- --===============6801375311706507889== 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". --===============6801375311706507889==--