From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 5DCA64C9D8 for ; Thu, 7 Aug 2025 00:43:35 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id E69FE68BC9A; Thu, 7 Aug 2025 03:43:30 +0300 (EEST) Received: from mslow3.mail.gandi.net (mslow3.mail.gandi.net [217.70.178.249]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 3988D68BC9A for ; Thu, 7 Aug 2025 03:43:24 +0300 (EEST) Received: from relay15.mail.gandi.net (relay15.mail.gandi.net [IPv6:2001:4b98:dc4:8::235]) by mslow3.mail.gandi.net (Postfix) with ESMTP id EDD4A581910 for ; Thu, 7 Aug 2025 00:26:51 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id D6C0B43140 for ; Thu, 7 Aug 2025 00:26:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1754526406; 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=pTVA4kzhOGvv9czgC/cnXi/aGdI0JUJW7BkFL2EdAh0=; b=PwWbZPq2A0Dq5HpMy0dHSo412mtkcCVufJhuDAPU3TGydpwb0zMun7OUl48C+ymcy/FbSZ 2MYlbptm0oHf3DBzilBc8luTIlvhA/UWfkRikVCMiQx+0ytAujyQR0Dx8c1N2rAWQQ4x1o QNjP1EIHa2Klm9w+4tlyDYfRG6UWsVKJDbFKzcYF4j4PuqWaCQzhyxR1U7p7111FjLdf3q mJL0RTbCos3L41D0PF82MJjrAtzpsEmc54BTwrLFj1S4GeB03aTQGZJxQ82SP+NnH0Yf/y K+0s95RWktepdx8KxDJH60iDHyG5A2DxOmpM/jhDiU/CE1ISZnVsP7PeEQ6qzw== Date: Thu, 7 Aug 2025 02:26:45 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250807002645.GE29660@pb2> References: <20250806145422.31198-1-jiashengjiangcool@gmail.com> MIME-Version: 1.0 In-Reply-To: X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduudelgeelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdduhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpeeigeektdejudffjefhteegjedtgeettefggedthfejgfevhfetgeekjedtvdfhveenucfkphepgedurdeiiedrieehrddujeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieehrddujeeipdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg Subject: Re: [FFmpeg-devel] [PATCH v3] examples: Add check and replace av_free() to avoid potential memory errors 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="===============7178863759784502286==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============7178863759784502286== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ShHIgDmjKMPddC2T" Content-Disposition: inline --ShHIgDmjKMPddC2T Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 06, 2025 at 04:56:42PM +0200, Nicolas George wrote: > Jiasheng Jiang (HE12025-08-06): > > Add check for the return value of av_packet_alloc() to avoid potential = NULL pointer dereference. > > Moreover, replace redundant av_free() with fprintf(). > >=20 > > Fixes: 9a38184a14 ("examples/decode_audio: allocate the packet dynamica= lly") > > Signed-off-by: Jiasheng Jiang > > --- > > Changelog: > >=20 > > v2 -> v3: > >=20 > > 1. Remove wrong Fixes tag. > >=20 > > v1 -> v2: > >=20 > > 1. Remove unnecessary goto. > > 2. Add fprintf() for error message. > > --- > > doc/examples/decode_audio.c | 6 +++++- > > 1 file changed, 5 insertions(+), 1 deletion(-) >=20 > Still looks good to me, of course, thanks. >=20 > I do not maintain the docs. will apply thx for review [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Whats the most studid thing your enemy could do ? Blow himself up Whats the most studid thing you could do ? Give up your rights and freedom because your enemy blew himself up. --ShHIgDmjKMPddC2T Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaJPyxAAKCRBhHseHBAsP qxDIAKCL/8tJzfCq76h3BNNH8wahlJJCpwCglAIxL7e8KqtnHreLNcKNAzadOOQ= =Cr8B -----END PGP SIGNATURE----- --ShHIgDmjKMPddC2T-- --===============7178863759784502286== 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". --===============7178863759784502286==--