From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 1BBB0482D1 for ; Fri, 22 Mar 2024 02:25:38 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6FA5568D568; Fri, 22 Mar 2024 04:25:34 +0200 (EET) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 18E5A68D50F for ; Fri, 22 Mar 2024 04:25:27 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 374E160003 for ; Fri, 22 Mar 2024 02:25:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1711074326; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=sx/UmK8+1dLNZrlRU5QzW0SzATCauDeKqBcpQb2alrI=; b=XtolngHWQomkmL+53/e83o1QYTmRITQAPrmpeMC4K4pmE0fVDo9oHNER0HuYjdeeRHmJVr 5Pu8caxcA6lRqM6gZWkWRyMNl+akIpHau8awvry2QEil+DTAAx0+AQBnPwcjpz828s4JY6 I6XD3S9rLdf0FGTJQHpXLoBjAIth4eiKZPItIWoiBEuvmpfBXYTxkjwBzyvQmE+yoFQqV3 OEed6MUUE+bXaPQGaCTsT22Abgj9ey+ySam53SwWI75/ozzS4koAu5dmklgm7a83b7k/Nk XxEBbVOgPh1aYYXaS+3N2Lke+eafAhWKWkm/VsSxuKGKA9meLrtpkrZvaEWIlw== Date: Fri, 22 Mar 2024 03:25:25 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20240322022525.GB6420@pb2> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [RFC] Channels 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="===============8022203428875882949==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============8022203428875882949== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tI7SlgLmi3Unbdy3" Content-Disposition: inline --tI7SlgLmi3Unbdy3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all we have code like st->codecpar->ch_layout.nb_channels =3D avio_rb32(pb); and then somewhere there is some code that uses this by first allocating an array and that then hits OOM (it was this here: map =3D av_calloc(nb_channels, sizeof(*channel_layout->u.map));) is anyone against adding a max_channels field to AVFormatContext or someth= ing like that ? alternative is "wont fix" for all such cases, or maybe someone sees another= way ? thx --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB It is what and why we do it that matters, not just one of them. --tI7SlgLmi3Unbdy3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZfzsEQAKCRBhHseHBAsP qx5oAJ4orzy2VBRFEhxXVLxyH56f9SPc0ACbB3+NAUp32r8KdWKrY252xen+w6g= =39Fi -----END PGP SIGNATURE----- --tI7SlgLmi3Unbdy3-- --===============8022203428875882949== 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". --===============8022203428875882949==--