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 34DF148AA2 for ; Sat, 27 Apr 2024 23:54:45 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A372A68D2FB; Sun, 28 Apr 2024 02:54:34 +0300 (EEST) Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B566368C9CC for ; Sun, 28 Apr 2024 02:54:26 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 1DF2940005 for ; Sat, 27 Apr 2024 23:54:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1714262066; 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=cgXcQjBixzwGchFmz0XDDb3jYEOpmwW2vdXBNGlV4qE=; b=P7zzRvnrC9axcjrflmjflLdhd11pOykoH1EE4qOVA71r1R5916x4Whr9TJ2Ae0kF/WRKZb Cn3S+TgHb4LVeBY5YKgY487BwCX+IMTN7yYJST5KECRIrC3kBZMkAqCghANWa7BZGqdREX StEO/+Auk9apGuCIN6pS1ZQpOErUTpTg5CaJyIpF5Sjl8qoTA9QSiNQftZl+Gs2nejuCAO 2yyoc7n42v4Sb0kcou5LmXfNC8jZX+6B2uew7ex1etsxnBeBfjbKtGKhNUVWsD7hXax3cp ho4bKBTJ3BxEdN8cG6dSfHXtpcmlGgcmms5RZM5PxpXbXqeOhSH2HuK85IV6/Q== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sun, 28 Apr 2024 01:54:16 +0200 Message-ID: <20240427235424.3075968-2-michael@niedermayer.cc> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240427235424.3075968-1-michael@niedermayer.cc> References: <20240427235424.3075968-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 02/10] fftools/ffmpeg_enc: Initialize fd 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: Fixes: CID1520677 Uninitialized pointer read Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- fftools/ffmpeg_enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c index 863d1a43edd..0b3f3f101a2 100644 --- a/fftools/ffmpeg_enc.c +++ b/fftools/ffmpeg_enc.c @@ -474,7 +474,7 @@ void enc_stats_write(OutputStream *ost, EncStats *es, AVRational tbi = (AVRational){ 0, 1}; int64_t ptsi = INT64_MAX; - const FrameData *fd; + const FrameData *fd = NULL; if (frame ? frame->opaque_ref : pkt->opaque_ref) { fd = (const FrameData*)(frame ? frame->opaque_ref->data : pkt->opaque_ref->data); -- 2.43.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".