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 CD88748008 for ; Sun, 4 Aug 2024 20:54:14 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B86CF68D994; Sun, 4 Aug 2024 23:53:25 +0300 (EEST) Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E069368D96B for ; Sun, 4 Aug 2024 23:53:16 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 2A7D1240003 for ; Sun, 4 Aug 2024 20:53:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1722804796; 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=gEnw+cO5IFsTgpbUp3uIamtDATNa6XWLlcVcxL4Yva0=; b=kmW9PhKBKn+1Tg+UT3ueXD3KQk9HvxXPgnFr8zv0fO58Hn+G8gBjA0QtgGVjuD8/nEj7wf m7ue8nFSHpD1EQIpnBcEN04oFhlhXYMXVRJfbMOapgzvm3YA0giXa8tNc31r3m1MiCzi8x JTmK+2zEOpVgYQDhkJmZF/2ZOS7dQ59kmbheUaxJsuVGwHzI11PLpNE2S77BjkzIWEbJAe Sy0rwPsmU+1u7PDfy2A7c62RfnPRvwjSEcxEmxNYmD3N9gip44wlZ7+KkEntLqRQywefFt K0S4I5MmWSJr8Jua8vcY5zMwaTDhaA4vMbnsFeRGRhOM9Y7t02cts44E7ms4JQ== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sun, 4 Aug 2024 22:53:08 +0200 Message-ID: <20240804205309.1978196-7-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240804205309.1978196-1-michael@niedermayer.cc> References: <20240804205309.1978196-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 7/8] avcodec/aic: Clear slice_data 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: use-of-uninitialized-value Fixes: 70865/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AIC_fuzzer-4874102695854080 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/aic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/aic.c b/libavcodec/aic.c index 3ff170b414f..e12d689c478 100644 --- a/libavcodec/aic.c +++ b/libavcodec/aic.c @@ -465,8 +465,7 @@ static av_cold int aic_decode_init(AVCodecContext *avctx) } } - ctx->slice_data = av_malloc_array(ctx->slice_width, AIC_BAND_COEFFS - * sizeof(*ctx->slice_data)); + ctx->slice_data = av_calloc(ctx->slice_width, AIC_BAND_COEFFS * sizeof(*ctx->slice_data)); if (!ctx->slice_data) { av_log(avctx, AV_LOG_ERROR, "Error allocating slice buffer\n"); -- 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".