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 7E96A4DDF5 for ; Sat, 5 Jul 2025 11:25:18 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id F41686901F0; Sat, 5 Jul 2025 14:25:15 +0300 (EEST) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id EAADA68FFA5 for ; Sat, 5 Jul 2025 14:25:09 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 4119D41D02 for ; Sat, 5 Jul 2025 11:25:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1751714709; 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=cVF3+cf5TAQZl70GDOrj9iuGN0KXkxPWZL+MB9q3jUk=; b=WuQVBdxtO7/RSEAyHmrY4T224GyKYxgjqZIRG2Zto7NS/XuXFpxurCPFALRu7Mfk7Xu4HA oW46rd2cymSCaUtTUffJRYSIgB2BjgdlslmKmga8w/X28bDEx4RDJwQxppo/ULI3L704p6 0iZa/9vNnrsunMV4AFEadCSwfOAKhJI8K1yVL5/TPmZh51BaXhJ0O1XlmZROdySVRf+Tac i2k8KYppiVmFEfVnXmGltz+uRWEAxNiVBUQHUgOxv/1ZbXcxCj2AuFHkq6KFXo41iaTxuf b1P/d0RvhDxA0Bb4TVnAamvoi8Sq2/GDa3D0WK6Hh/0aBmpKLQEcG8IQXU79VA== Date: Sat, 5 Jul 2025 13:25:08 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250705112508.GY29660@pb2> References: <20250630150114.2152464-1-502024330056@smail.nju.edu.cn> <20250630150114.2152464-2-502024330056@smail.nju.edu.cn> MIME-Version: 1.0 In-Reply-To: <20250630150114.2152464-2-502024330056@smail.nju.edu.cn> X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddvheeludcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdludehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhepieegkedtjeduffejhfetgeejtdegteetgfegtdfhjefgvefhteegkeejtddvhfevnecukfhppeeguddrieeirdeiiedrvddvjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeguddrieeirdeiiedrvddvjedphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH v4 1/3] avfilter/asrc_sinc: fix leak in config_input() 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="===============2863649667239528641==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============2863649667239528641== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8S4YwGWhvAgqv9cN" Content-Disposition: inline --8S4YwGWhvAgqv9cN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 30, 2025 at 11:01:12PM +0800, Lidong Yan wrote: > In config_input(), fir_to_phase() allocates memory in h[longer], which > would leak if av_calloc() to s->coeffs failed. lpf() allocates memory > in h[0] and h[1], which would leak if fir_to_phase() failed. To fix > this leak, add av_free(h[longer]) in as cleanup code, and replace > return AVERROR* with goto cleanup to prevent from leaks. >=20 > Signed-off-by: Lidong Yan <502024330056@smail.nju.edu.cn> > --- > libavfilter/asrc_sinc.c | 18 +++++++++++------- > 1 file changed, 11 insertions(+), 7 deletions(-) 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. --8S4YwGWhvAgqv9cN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaGkLkwAKCRBhHseHBAsP q9eoAJ9dfOXnR6eLqHompQy+EAoOD5gL9ACdFU+coGrI2lrXDb4+BhW/HzADevk= =wmXJ -----END PGP SIGNATURE----- --8S4YwGWhvAgqv9cN-- --===============2863649667239528641== 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". --===============2863649667239528641==--