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 09A904B64E for ; Wed, 10 Jul 2024 22:50:46 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 073CB68DBA5; Thu, 11 Jul 2024 01:50:25 +0300 (EEST) 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 5DDE768D87E for ; Thu, 11 Jul 2024 01:50:16 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id B9B1760002 for ; Wed, 10 Jul 2024 22:50:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1720651815; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3dQXnunaoRuuveibvCeCAZMNQlcBD7O7jU4/XWg1mQw=; b=auTZzRQhDzt+JhcN4opcld+VsNezC7xscxNKBwaBWWpWy+8T+el1rs4hMIJdCliAkwEdU6 ZKN1JJJgGefJN3mlxbixOUsuxg8jiG0UrZDRDLwaTZeBP2YYkItKNV5n9UGjeyP+4Bv1GU +JkyfyMbgdjlgo5uCo68DFqVUFGtKTJlI/HmhXtn/DX5xeWukvNmnlQhOGhZitWvpMA9C4 CAVQ+mxGiFjhbSkquT2fwtRwzCScO7vHKE2fzp8Xfq1snrAXI3WPXtFAE7XR59kGlcbY+0 DbhhmlX0fQdUhTJJnMH8T7nZ4N4MjoGzeRk7kGBEY/FH1FiLXWY2MTsb/lraWg== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Thu, 11 Jul 2024 00:50:09 +0200 Message-ID: <20240710225012.691594-3-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240710225012.691594-1-michael@niedermayer.cc> References: <20240710225012.691594-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 3/6] avfilter/vf_tpad: Dont clone NULL 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: untested Fixes: CID1440836 Dereference after null check Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavfilter/vf_tpad.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_tpad.c b/libavfilter/vf_tpad.c index 72d0bf338fe..a230a50022c 100644 --- a/libavfilter/vf_tpad.c +++ b/libavfilter/vf_tpad.c @@ -132,6 +132,7 @@ static int activate(AVFilterContext *ctx) s->cache_start = ff_inlink_peek_frame(inlink, 0); } else if (!s->cache_start) { FF_FILTER_FORWARD_WANTED(outlink, inlink); + return FFERROR_NOT_READY; } frame = av_frame_clone(s->cache_start); if (!frame) -- 2.45.2 _______________________________________________ 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".