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 79B4144B9B for ; Sun, 6 Nov 2022 22:38:50 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 766D168BA95; Mon, 7 Nov 2022 00:38:48 +0200 (EET) Received: from mail-oa1-f42.google.com (mail-oa1-f42.google.com [209.85.160.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 76CD268B7FF for ; Mon, 7 Nov 2022 00:38:42 +0200 (EET) Received: by mail-oa1-f42.google.com with SMTP id 586e51a60fabf-13ae8117023so10956396fac.9 for ; Sun, 06 Nov 2022 14:38:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=it+oHYlgNmOMxEISo90aqWDpxssP7XFhGe8ozoHo2HA=; b=NjwkLXS9t4rWoPu2ZTwYnSQ3zNbKUEbJUwhXLqzVBfNgoojNzvxUuzXSAczfjBLkYL xqHapeytzv/dXI7OhAPwnQqlu7vSBzWbM1MqTac5IR+9BAJWZQ3vxOBkMUIyqYigdaYZ GH69tkTz+BDopTeL8XtpWTvnZR4hj/3Hjd4AoCw9QSrZlaGd+tDrQqzkqrHQtRdcSWRH b1QyiJ1kw8QqXvHcwxKluvI2fw4vCRMp31cYfrneLgQEGomFB0WlcXpGcGSnQvT1yLqu HATpuA5/CGjap4gL6KcvzOTKdZLtjvdW1BliItRAm8s+dICoy86op0d0WP6+jrcIbAKO pFZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=it+oHYlgNmOMxEISo90aqWDpxssP7XFhGe8ozoHo2HA=; b=0mHKvRhUj388eHfN1wcGnajGR+Qe6tkUfwO4Lpc1fGbqULluNCb0lYP2qW8u+iVoHb PXQCJqkYkLr2DGuvZM3O/EpJ9QUkGYbDhEuJQ6L0uuCXEoRziBndBiYeZCM7GOHleIVN RTNn7Qj34aacuqQkSJf9YqSNsQJIZJ0iZdn/jk6HJGNWQT0XhVnKzhww2R18f9Vrqn3V 9aNUogzjYzVkaYXCyyFBS03ddOGuzOHz3tI1VKwQ2mBO8/gwZziYZU3L/cgOeMAqFWpR 0t0YGBHOTBI1KOQvZEnfCiioK6EBbdy6/Rj5VeieZPqFM2ow3oUcU0/Z15tlO4Ui+WgB 3whg== X-Gm-Message-State: ACrzQf3Lsi2zAeKhV+3iZiploqi25Q/FVtZzBCMnZMYtEXcd5/8u3ODq 5u6z83t48AK8l9ILCU8Ikfhh9WEardk= X-Google-Smtp-Source: AMsMyM5VzlTQydNCT1zs+qZVGl5XzthT7HIcZ8Qr8saflZpk28omsPhN6ODZ54+bCsCmv93rLKKGKA== X-Received: by 2002:a05:6870:bf0c:b0:13c:e80b:f050 with SMTP id qh12-20020a056870bf0c00b0013ce80bf050mr501098oab.134.1667774320446; Sun, 06 Nov 2022 14:38:40 -0800 (PST) Received: from [192.168.0.15] ([181.85.72.69]) by smtp.gmail.com with ESMTPSA id i5-20020a056870c1c500b0012c21a64a76sm2302043oad.24.2022.11.06.14.38.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Nov 2022 14:38:40 -0800 (PST) Message-ID: <111fd62a-ab3f-818f-d15b-e1b88a11599f@gmail.com> Date: Sun, 6 Nov 2022 19:38:42 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Content-Language: en-US To: ffmpeg-devel@ffmpeg.org References: <20221105201629.1980-1-michael@niedermayer.cc> From: James Almer In-Reply-To: <20221105201629.1980-1-michael@niedermayer.cc> 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 11/5/2022 5:16 PM, Michael Niedermayer wrote: > Fixes: null pointer dereference > Fixes: 52155/clusterfuzz-testcase-minimized-ffmpeg_BSF_DTS2PTS_fuzzer-5760107527143424 > > 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(-) > > 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 = 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) Should be ok. _______________________________________________ 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".