From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <ffmpeg-devel-bounces@ffmpeg.org>
Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100])
	by master.gitmailbox.com (Postfix) with ESMTP id 4A6374574D
	for <ffmpegdev@gitmailbox.com>; Sat, 22 Apr 2023 21:19:12 +0000 (UTC)
Received: from [127.0.1.1] (localhost [127.0.0.1])
	by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AB19568BF6E;
	Sun, 23 Apr 2023 00:19:08 +0300 (EEST)
Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [217.70.178.230])
 by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D278568BF5C
 for <ffmpeg-devel@ffmpeg.org>; Sun, 23 Apr 2023 00:19:01 +0300 (EEST)
Received: (Authenticated sender: michael@niedermayer.cc)
 by mail.gandi.net (Postfix) with ESMTPSA id B92E0240006
 for <ffmpeg-devel@ffmpeg.org>; Sat, 22 Apr 2023 21:19:00 +0000 (UTC)
Date: Sat, 22 Apr 2023 23:18:59 +0200
From: Michael Niedermayer <michael@niedermayer.cc>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Message-ID: <20230422211859.GZ275832@pb2>
References: <20230124234254.30008-1-michael@niedermayer.cc>
MIME-Version: 1.0
In-Reply-To: <20230124234254.30008-1-michael@niedermayer.cc>
Subject: Re: [FFmpeg-devel] [PATCH 1/2] avcodec/g2meet: Replace fake
 allocation avoidance for framebuf
X-BeenThere: ffmpeg-devel@ffmpeg.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org>
List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe>
List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel>
List-Post: <mailto:ffmpeg-devel@ffmpeg.org>
List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help>
List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>,
 <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe>
Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Content-Type: multipart/mixed; boundary="===============0762744368495880892=="
Errors-To: ffmpeg-devel-bounces@ffmpeg.org
Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org>
Archived-At: <https://master.gitmailbox.com/ffmpegdev/20230422211859.GZ275832@pb2/>
List-Archive: <https://master.gitmailbox.com/ffmpegdev/>
List-Post: <mailto:ffmpegdev@gitmailbox.com>


--===============0762744368495880892==
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature"; boundary="p+/4B2pcxE3X6xU6"
Content-Disposition: inline


--p+/4B2pcxE3X6xU6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 25, 2023 at 12:42:53AM +0100, Michael Niedermayer wrote:
> framebuf is only allocated when the new width/height are larger than the =
old
> but nothing sets the old so its always allocated.
> Use av_fast_mallocz() instead.
>=20
> Fixes: Timeout
> Fixes: 55094/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_G2M_fuzzer=
-5116909932904448
>=20
> Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/t=
ree/master/projects/ffmpeg
> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
> ---
>  libavcodec/g2meet.c | 19 ++++++++++---------
>  1 file changed, 10 insertions(+), 9 deletions(-)

will apply patchset

[...]
--=20
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.

--p+/4B2pcxE3X6xU6
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZERPPwAKCRBhHseHBAsP
q86eAKCHpGw7EhoGRJSGw0OqEJIRI5w8IQCfWaTRcLe39YL+43PzjNFNpyny3Bk=
=Cvz1
-----END PGP SIGNATURE-----

--p+/4B2pcxE3X6xU6--

--===============0762744368495880892==
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".

--===============0762744368495880892==--