From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 293394BDC9 for ; Thu, 24 Jul 2025 16:40:54 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 3FBC868D80B; Thu, 24 Jul 2025 19:40:32 +0300 (EEST) Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id C78CD68D799 for ; Thu, 24 Jul 2025 19:40:23 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 0BF9F43D47 for ; Thu, 24 Jul 2025 16:40:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1753375223; 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=HhAgYH3nTK7pSeUxlE3wiXfc4MmP0xZU6QVb18lCVqc=; b=BZIT0xTRzy9rBY6m33EsGH/yw7kL7cKVeOz3ZEVRvJUKQ9t/OpUSbtFvJNtksR724+rsAy Taa5NWcWqu0dw7aytqdAvGwR/OTTI6BW5fi/S/E/Gr3EisRE0hHb3xbQFAW6B91xKrpyAt EAg2iROa2u/Cqn+a+Oa7t7Ann9cfYBqybABPSieb5VvxgjVaz+24hKbRamP3q2kpBsuDeX pnZI4gl8hO3LSZ0DZA4fslW/dVKrO3bej1Iz4QyVxUhoL6n7aelxIdlVhILhhOgi9C6kDT bwi7WLwo6M/5SFGZMAVEmpB3XuQbW4rySo/us2xAHIcVaBj9qX/XgWHE6DUg7A== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Thu, 24 Jul 2025 18:40:19 +0200 Message-ID: <20250724164019.773541-3-michael@niedermayer.cc> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250724164019.773541-1-michael@niedermayer.cc> References: <20250724164019.773541-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdekudduhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdludehmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhepgeejhfetgefhgfeludegvdduvdffgeefvddtheetlefhueeitdevffevfeehhefgnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepgedurdeiiedrieehrddujeeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieehrddujeeipdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 3/3] avformat/mxg: clear AV_INPUT_BUFFER_PADDING_SIZE 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 memory Fixes: 427532813/clusterfuzz-testcase-minimized-ffmpeg_dem_MXG_fuzzer-5661938917113856 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavformat/mxg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/mxg.c b/libavformat/mxg.c index 6a39873f213..40139d7d3d9 100644 --- a/libavformat/mxg.c +++ b/libavformat/mxg.c @@ -127,6 +127,8 @@ static int mxg_update_cache(AVFormatContext *s, unsigned int cache_size) mxg->cache_size += ret; + memset(mxg->buffer_ptr + mxg->cache_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); + return ret; } -- 2.50.1 _______________________________________________ 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".