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 13C9E4BBDD for ; Wed, 14 Aug 2024 14:34:42 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CEBE368DB62; Wed, 14 Aug 2024 17:34:29 +0300 (EEST) Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2639068DB62 for ; Wed, 14 Aug 2024 17:34:23 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 5DFD51BF206 for ; Wed, 14 Aug 2024 14:34:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1723646062; 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; bh=FfBbNBRWyWX6lG5iXQ3nyW7urwvUVtwHRzmBbsZOoNc=; b=VMWk7fgDq30tV2Ayc0BnQaq5GE0oEdc3ZcxyKknHiBaCvwMmrHfEE6lrlKYM+2QgjUvrxt 2i1j962Zd24L3HdjTqD/G2Xp01FhtU0O7QZEa+E1nGmGsomzh4gPqfwtqqEI+raQhAur++ OEp3JPyVZiatxwuw2o39d/uHrq5q/86r/xPNKakwxkTM+goEJJaa0iI4liU9tSmHlsFjMr TzTzrypzaSN7bPO4txxYnr675Ija90tLDJMxSsG3r6U4JzTUNmRtWpIewf0Dp2LwqfMoiV EmnCrClpvI7l4X7gFNe/Fs6UNSatVYowZq88qstF5bRuZqoNWeuQTJojlcgnIw== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Wed, 14 Aug 2024 16:34:19 +0200 Message-ID: <20240814143421.3990034-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 1/3] avformat/iamf_parse: clear padding 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: 70929/clusterfuzz-testcase-minimized-ffmpeg_dem_IAMF_fuzzer-5931276639469568 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/iamf_parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/iamf_parse.c b/libavformat/iamf_parse.c index 296e49157b0..f2b6d4fa518 100644 --- a/libavformat/iamf_parse.c +++ b/libavformat/iamf_parse.c @@ -1076,6 +1076,7 @@ int ff_iamfdec_read_descriptors(IAMFContext *c, AVIOContext *pb, size = avio_read(pb, header, FFMIN(MAX_IAMF_OBU_HEADER_SIZE, max_size)); if (size < 0) return size; + memset(header + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); len = ff_iamf_parse_obu_header(header, size, &obu_size, &start_pos, &type, NULL, NULL); if (len < 0 || obu_size > max_size) { -- 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".