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 8FE484A5DC for ; Mon, 1 Apr 2024 17:03:02 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9F45D68CDD1; Mon, 1 Apr 2024 20:02:59 +0300 (EEST) Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5F32A68C2D6 for ; Mon, 1 Apr 2024 20:02:53 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id B7B64FF804 for ; Mon, 1 Apr 2024 17:02:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1711990972; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hgdK7AEw5xYCZN0GZY/QAZ0a7REjxCAEpA5H4d8JFtM=; b=NzReip0A+dGJPbonSo21cUR1M/67WC47pTiF0/VmLa6KMHvnTuq1Q5VKdAV5WbOSMnBhcG udLwSCwUZSM4b8DzLWVeMy+isuXitzPbAuIXqn9FLiR1IJdsvVZTHqsc7nq67H5odkoe9Y jyA4hux0VH5i6gg2uK49aClDLBuMSP9K+4DHt01elEnAR4K5Uzj4QajLOTZXYKC2Oyg3fm 2WWm2M8qRKBOd6w+8cLqewAu0l8Kt0iVig2rQhzewIhLfQbawWLi9iJpd/s8LbGPJ3ZzJq dZ/EcaKU2nyAk3I4M0ZhYuhXsFd09aPrq6gU2RtZUso3Tngn+Mn18IWCSU+UzQ== Date: Mon, 1 Apr 2024 19:02:51 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20240401170251.GJ6420@pb2> References: <20240310180719.8902-1-michael@niedermayer.cc> MIME-Version: 1.0 In-Reply-To: <20240310180719.8902-1-michael@niedermayer.cc> X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH] avformat/mpegts: Reset local nb_prg on add_program() failure 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="===============3555229262737469133==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============3555229262737469133== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="LYrgoidqnTZyLMe2" Content-Disposition: inline --LYrgoidqnTZyLMe2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 10, 2024 at 07:07:19PM +0100, Michael Niedermayer wrote: > add_program() will deallocate the whole array on failure so > we must clear nb_prgs >=20 > Fixes: null pointer dereference > Fixes: crash-35a3b39ddcc5babeeb005b7399a3a1217c8781bc >=20 > Found-by: Catena cyber > Signed-off-by: Michael Niedermayer > --- > libavformat/mpegts.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) will apply [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Breaking DRM is a little like attempting to break through a door even though the window is wide open and the only thing in the house is a bunch of things you dont want and which you would get tomorrow for free anyway --LYrgoidqnTZyLMe2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZgrouwAKCRBhHseHBAsP qy5+AJ9lsYza8AOjJWLFho6GEHG04lPxFgCghRbpHHsw/S8hH76n2kgiCcPZr1Y= =8z31 -----END PGP SIGNATURE----- --LYrgoidqnTZyLMe2-- --===============3555229262737469133== 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". --===============3555229262737469133==--