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 7E04C4FC45 for ; Sat, 28 Jun 2025 21:06:48 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id C2B2F68E554; Sun, 29 Jun 2025 00:06:44 +0300 (EEST) Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id EE1E468DACD for ; Sun, 29 Jun 2025 00:06:37 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 43B9E443F6 for ; Sat, 28 Jun 2025 21:06:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1751144797; 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=cixDW64tk/L2kzQe8OiY5yYMbJF1TauvW99lKXA9St0=; b=plOT2AtLibt439AhQTxpg6wVE//8D29HlTMsYssizpiYQEI29m2npW5YF0xCkM7gpgEZY8 GAThDA5uIGYQd+Mm7rqHc7OV+HUuQ6GIQmoaTBAXK1/10m4AYq2NGBVna+SFS2GUFW7Zny MPnrVK+C4TDEg4TzQomgLcaubYW69T+TyYtfCJyYqkmQOTtXhMGKjzEOX7JtkQ9ct94zpM pjvXNs7j1fYt7JuV+CKu2uvMBVoD73CHDZShWBgc0whZi25f5AUBHORrkeBVjkDUn/13DF M+V1bSjHz6NGTrFQ/v38zbfaF8/QrIXfRtBj7TcPqqRchcoWdLg33ott8CpiEQ== Date: Sat, 28 Jun 2025 23:06:36 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250628210636.GQ29660@pb2> References: <20250627140918.2832152-1-502024330056@smail.nju.edu.cn> <20250627140918.2832152-3-502024330056@smail.nju.edu.cn> MIME-Version: 1.0 In-Reply-To: <20250627140918.2832152-3-502024330056@smail.nju.edu.cn> X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdeileejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdduhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpeeigeektdejudffjefhteegjedtgeettefggedthfejgfevhfetgeekjedtvdfhveenucfkphepgedurdeiiedrieejrdduudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieejrdduudefpdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH 2/4] avcodec/vorbisenc: fix leak if av_mallocz failed 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="===============4523819683084524755==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============4523819683084524755== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0hCJvsGXopUWabu+" Content-Disposition: inline --0hCJvsGXopUWabu+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 27, 2025 at 10:09:16PM +0800, Lidong Yan wrote: > In put_main_header(), av_mallocz() allocates memory to local variable > buffer, buffer leaks if av_mallocz() to *out failed. Add av_free(buffer) > before return error code. >=20 > Signed-off-by: Lidong Yan <502024330056@smail.nju.edu.cn> > --- > libavcodec/vorbisenc.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) will apply thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB No human being will ever know the Truth, for even if they happen to say it by chance, they would not even known they had done so. -- Xenophanes --0hCJvsGXopUWabu+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaGBZVQAKCRBhHseHBAsP q+BDAJ4+dYUUQMyAQBxRINV6nlJ+QdHxOACcDEUIUGwwb/IF93xCZy+2M991N7k= =7u50 -----END PGP SIGNATURE----- --0hCJvsGXopUWabu+-- --===============4523819683084524755== 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". --===============4523819683084524755==--