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 E7A0B4352D for ; Sun, 12 Nov 2023 15:12:26 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CECAB68CC6D; Sun, 12 Nov 2023 17:12:13 +0200 (EET) Received: from alphacentauri.ramacher.at (alphacentauri.ramacher.at [195.201.139.148]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 78FFE68CC67 for ; Sun, 12 Nov 2023 17:12:07 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ramacher.at ; s=mail; h=MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To :From:Content-Type; bh=5Ry3qYdqyzxrDytw0QKcY2+4rxOq1Q5yil4schzkNzw=; b=henmA/ BDaFvs3wPF29aBCz0CTxPlr4P6k2iO8Oq2TXaC1cSY0FNgvWdeGqVSFVPvT0e6Td9orUarRGbTaJ7 zoQQ7rzAkXVWmGyMK7KfBxxni5f3IcTM3dKee1rdHFy0E4+vAOkMbLcBx5FMH8h+LKSSL40UvdH+1 VJ5xWh7waSo=; From: Sebastian Ramacher To: ffmpeg-devel@ffmpeg.org Date: Sun, 12 Nov 2023 16:11:43 +0100 Message-ID: <20231112151144.2307049-3-sramacher@debian.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231112151144.2307049-1-sramacher@debian.org> References: <20231112151144.2307049-1-sramacher@debian.org> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/3] avcodec/fft: Set potentially unused wrapper variables to avoid invalid free/uninit 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 Cc: Sebastian Ramacher 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: --- libavcodec/avfft.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavcodec/avfft.c b/libavcodec/avfft.c index 93203228c2..813b6d61a1 100644 --- a/libavcodec/avfft.c +++ b/libavcodec/avfft.c @@ -102,7 +102,8 @@ FFTContext *av_mdct_init(int nbits, int inverse, double scale) av_free(s); return NULL; } - } + } else + s->ctx2 = NULL; return (FFTContext *)s; } @@ -220,7 +221,8 @@ DCTContext *av_dct_init(int nbits, enum DCTTransformType inverse) av_free(s); return NULL; } - } + } else + s->tmp = NULL; return (DCTContext *)s; } -- 2.42.0 _______________________________________________ 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".