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 6A34F443F3 for ; Wed, 9 Nov 2022 22:03:38 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id ABB1268BB2B; Thu, 10 Nov 2022 00:03:35 +0200 (EET) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 883DA68B613 for ; Thu, 10 Nov 2022 00:03:28 +0200 (EET) Received: (Authenticated sender: michael@niedermayer.cc) by mail.gandi.net (Postfix) with ESMTPSA id A8B9C1C0007 for ; Wed, 9 Nov 2022 22:03:27 +0000 (UTC) Date: Wed, 9 Nov 2022 23:03:26 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20221109220326.GY1814017@pb2> References: <20221105201629.1980-1-michael@niedermayer.cc> <111fd62a-ab3f-818f-d15b-e1b88a11599f@gmail.com> MIME-Version: 1.0 In-Reply-To: <111fd62a-ab3f-818f-d15b-e1b88a11599f@gmail.com> Subject: Re: [FFmpeg-devel] [PATCH 1/4] avcodec/dts2pts_bsf: Check ctx for NULL before ff_cbs_flush() 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="===============0311964657442710644==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============0311964657442710644== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Z8pjODCYYz+3zRe3" Content-Disposition: inline --Z8pjODCYYz+3zRe3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 06, 2022 at 07:38:42PM -0300, James Almer wrote: > On 11/5/2022 5:16 PM, Michael Niedermayer wrote: > > Fixes: null pointer dereference > > Fixes: 52155/clusterfuzz-testcase-minimized-ffmpeg_BSF_DTS2PTS_fuzzer-5= 760107527143424 > >=20 > > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz= /tree/master/projects/ffmpeg > > Signed-off-by: Michael Niedermayer > > --- > > libavcodec/dts2pts_bsf.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > >=20 > > diff --git a/libavcodec/dts2pts_bsf.c b/libavcodec/dts2pts_bsf.c > > index bf20b1ec8a..8142562d2c 100644 > > --- a/libavcodec/dts2pts_bsf.c > > +++ b/libavcodec/dts2pts_bsf.c > > @@ -505,7 +505,8 @@ static void dts2pts_flush(AVBSFContext *ctx) > > s->root =3D NULL; > > ff_cbs_fragment_reset(&s->au); > > - ff_cbs_flush(s->cbc); > > + if (s->cbc) > > + ff_cbs_flush(s->cbc); > > } > > static void dts2pts_close(AVBSFContext *ctx) >=20 > Should be ok. will apply thx [...]=20 --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Frequently ignored answer#1 FFmpeg bugs should be sent to our bugtracker. U= ser questions about the command line tools should be sent to the ffmpeg-user ML. And questions about how to use libav* should be sent to the libav-user ML. --Z8pjODCYYz+3zRe3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCY2wjqAAKCRBhHseHBAsP qwn/AJ0WiLjTttJaPSeBeAiy1OcdMm+0IQCfbwB5DfBO5LoHG/EIjwZVQ2GFEBU= =8GkN -----END PGP SIGNATURE----- --Z8pjODCYYz+3zRe3-- --===============0311964657442710644== 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". --===============0311964657442710644==--