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 1BCAA5040F for ; Sat, 12 Jul 2025 18:12:21 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 6E2ED68F15A; Sat, 12 Jul 2025 21:12:16 +0300 (EEST) Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 040E368F125 for ; Sat, 12 Jul 2025 21:12:09 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 5F9FE42E80 for ; Sat, 12 Jul 2025 18:12:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1752343929; 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=N7MZDAaH90SCxBEl3XCEmIr6AXQIW9rB7cpgSt0TuzQ=; b=H9FrPKVeb4Ps/OmJ6poqNcSpy2blJ5ycXq1YVMaQBQ7SjqvY+Jtra7BGw76jxolQodYZnL HQkJMlZi9vYr73HBvRH4sV7Uk4pnWYmVIzlijiCW61785hs1kMcJPQzsBftTxygTaIm/Y2 bt9H+I3fOtGNBdnbw+zD2eYuz9y0m3oTa9y9idkVZ/T483FHexaYZu8yZNejailCj3xjeb freorPnC1Gv1qs3X5mlb44q2LoSBOpVVO8Kc3JtbibYez3DbdyXbwThLqISIHlehCg0nbF /l4mDWPV0pGdPnHsQSzUxvclrL5scChmRORTJzQdONyMuafPVt8Lg4TPeVvxNw== Date: Sat, 12 Jul 2025 20:12:08 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20250712181208.GB29660@pb2> References: <20250710162639.48327-1-jiashengjiangcool@gmail.com> MIME-Version: 1.0 In-Reply-To: <20250710162639.48327-1-jiashengjiangcool@gmail.com> X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdegieeklecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdludehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhepieegkedtjeduffejhfetgeejtdegteetgfegtdfhjefgvefhteegkeejtddvhfevnecukfhppeeguddrieeirdeihedrudejieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeguddrieeirdeihedrudejiedphhgvlhhopehlohgtrghlhhhoshhtpdhmrghilhhfrhhomhepmhhitghhrggvlhesnhhivgguvghrmhgrhigvrhdrtggtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepfhhfmhhpvghgqdguvghvvghlsehffhhmphgvghdrohhrgh X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH v2] libavcodec/alsdec.c: Add check for av_malloc_array() and av_calloc() 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="===============1599181680477040882==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============1599181680477040882== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="o1DIHjCrihXvXXOE" Content-Disposition: inline --o1DIHjCrihXvXXOE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 10, 2025 at 04:26:39PM +0000, Jiasheng Jiang wrote: > Add check for the return value of av_malloc_array() and av_calloc() > to avoid potential NULL pointer dereference. >=20 > Fixes: dcfd24b10c ("avcodec/alsdec: Implement floating point sample data = decoding") > Signed-off-by: Jiasheng Jiang > --- > Changelog: >=20 > 1. Wrap the if condtion. > --- > libavcodec/alsdec.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) will apply thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Republics decline into democracies and democracies degenerate into despotisms. -- Aristotle --o1DIHjCrihXvXXOE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCaHKlcgAKCRBhHseHBAsP q4M+AJ4q17mq/+hI8scc1y4/azirL2lO8gCfcaSXJi1DeZTRdYbopE8ng5QfrJA= =ZbzT -----END PGP SIGNATURE----- --o1DIHjCrihXvXXOE-- --===============1599181680477040882== 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". --===============1599181680477040882==--