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 2817B4FB5E for ; Fri, 27 Jun 2025 21:47:54 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id EA29868DF2F; Sat, 28 Jun 2025 00:47:48 +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 CCFF2687D16 for ; Sat, 28 Jun 2025 00:47:41 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 3C4E04326A for ; Fri, 27 Jun 2025 21:47:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1751060861; 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=DlDVuj9QK/d/nV/g7J1jxA/WmqEC+c1fxt56Zbdlg7Y=; b=Vh2gM3nLYBz2OGdXYxjD8Znhe/I1WD94XhlMDWk3HFdkiMOl8vIelCPYWvCV/0ODJI2k4s qp7e3GeJFcPXMhhQAi1udo+Fg/ltfK3Ws9bidtUItS5HoA++ABxZsYRjd2v+tpL3UR2CsM RyJVTGBYXBVhBK8gio/13Rj0pQBJDXRLmb7H7NCCpVRynGqtCMj4O+Nm7wJKua4jH/B1x3 P4GsdV3yswuJpC7KcLFH4kvpJE2BjGjyAH8hTA2YjsfQkbOQZ9jlKFGjlp5kcBYYax+cjU Fn4E4apYQ82+PVFQxStDypHcEXKWWhfGua8DK+qUWbD/MFpsWNdoQgMEW3hmmA== Date: Fri, 27 Jun 2025 23:47:40 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250627214740.GJ29660@pb2> References: MIME-Version: 1.0 In-Reply-To: X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdegudekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfghrlhcuvffnffculdduhedmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfpihgvuggvrhhmrgihvghruceomhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtqeenucggtffrrghtthgvrhhnpeeigeektdejudffjefhteegjedtgeettefggedthfejgfevhfetgeekjedtvdfhveenucfkphepgedurdeiiedrieejrdduudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieejrdduudefpdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH] libavutil: fix memory leak of drmVersion 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="===============0343128297711427418==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============0343128297711427418== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bau4WhLBSYBwckqU" Content-Disposition: inline --bau4WhLBSYBwckqU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 25, 2025 at 10:26:16AM +0800, Tim Blechmann via ffmpeg-devel wr= ote: > Date: Wed, 25 Jun 2025 10:26:16 +0800 > From: Tim Blechmann > To: ffmpeg-devel@ffmpeg.org > Subject: [PATCH] libavutil: fix memory leak of drmVersion >=20 > address sanitizer showed some leaks of drmVersion structs. > `vaapi_device_create` did not call drmFreeVersion in all possible code > paths. >=20 > Signed-off-by: Tim Blechmann > --- > libavutil/hwcontext_vaapi.c | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c > index 95aa38d9d2..92b704891e 100644 > --- a/libavutil/hwcontext_vaapi.c > +++ b/libavutil/hwcontext_vaapi.c > @@ -1810,30 +1810,33 @@ static int vaapi_device_create(AVHWDeviceContext = *ctx, const char *device, > char drm_vendor[8]; > if (drmGetDevice(priv->drm_fd, &device)) { > av_log(ctx, AV_LOG_VERBOSE, > "Failed to get DRM device info for device= %d.\n", n); > close(priv->drm_fd); > priv->drm_fd =3D -1; > + drmFreeVersion(info); > continue; > } > snprintf(drm_vendor, sizeof(drm_vendor), "0x%x", > device->deviceinfo.pci->vendor_id); > if (strcmp(vendor_id->value, drm_vendor)) { error: corrupt patch at line 20 patch corrupted by newlines, make sure your editor doesnt break long lines or attach the patch or use git send-email thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB In a rich man's house there is no place to spit but his face. -- Diogenes of Sinope --bau4WhLBSYBwckqU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaF8RfAAKCRBhHseHBAsP q4YRAJ9rEAHKA0UXdywUvX7Tt3KZ/BkXvQCfbQMWUHKiKyC3CiAo3CLE7k7qD5Y= =5/0P -----END PGP SIGNATURE----- --bau4WhLBSYBwckqU-- --===============0343128297711427418== 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". --===============0343128297711427418==--