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 ESMTPS id 92EC64BCDA for ; Sun, 2 Feb 2025 21:17:45 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2175A68BB1D; Sun, 2 Feb 2025 23:17:31 +0200 (EET) 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 1CEA568B8A3 for ; Sun, 2 Feb 2025 23:17:24 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 738DA43429 for ; Sun, 2 Feb 2025 21:17:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1738531043; 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=x4kq/evGRypPbrbYOy8jhSjKq/TAuQxFnK4utTgnmjw=; b=e08jZItKUunL7rj9Xtjr4jRzqaLpNk2IOuwg6Fj/NF8iROQRDbNJyLnck7WEKz303gaAKq lxuZcGWN6mr7WFeAMFtjc66fR7qTF2eNNC/IwMjq4vERubsAjXiUVMl7QvZAsHXPh7AEIC 9Z1LFbX/t4Jf6w0FiHK66NnBap4fBNeUcI6KAiGegyWZVGvOOuXar/Bfudqmnz2UY2L18w Z31Vy8i9XcniOAh/LpK3VPLOfhRnNjH3447iUwUywVIah2R28Q9LE7dyZSigAuAFjAWTE6 WSTLZ2tP90KWUmbtLOmqPL5pvaoodo5LiHnJsf0L68z1bwMUqH1PspQAMGxsjw== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sun, 2 Feb 2025 22:17:21 +0100 Message-ID: <20250202211721.1469377-2-michael@niedermayer.cc> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250202211721.1469377-1-michael@niedermayer.cc> References: <20250202211721.1469377-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-State: clean X-GND-Score: -85 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduheejgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdludehmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepofhitghhrggvlhcupfhivgguvghrmhgrhigvrhcuoehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgeqnecuggftrfgrthhtvghrnhepgeejhfetgefhgfeludegvdduvdffgeefvddtheetlefhueeitdevffevfeehhefgnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepgedurdeiiedrieejrdduudefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepgedurdeiiedrieejrdduudefpdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehmihgthhgrvghlsehnihgvuggvrhhmrgihvghrrdgttgdpnhgspghrtghpthhtohepuddprhgtphhtthhopehffhhmphgvghdquggvvhgvlhesfhhfmhhpvghgrdhorhhg X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 2/2] avcodec/vvc/refs: Check content_ref in set_pict_type() 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: 390565846/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VVC_fuzzer-4990028521996288 Fixes: Null pointer dereference Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/vvc/refs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vvc/refs.c b/libavcodec/vvc/refs.c index 486515d06db..1cfca482047 100644 --- a/libavcodec/vvc/refs.c +++ b/libavcodec/vvc/refs.c @@ -186,7 +186,7 @@ static void set_pict_type(AVFrame *frame, const VVCContext *s, const VVCFrameCon const CodedBitstreamFragment *current = &s->current_frame; for (int i = 0; i < current->nb_units && !has_b; i++) { const CodedBitstreamUnit *unit = current->units + i; - if (unit->type <= VVC_RSV_IRAP_11) { + if (unit->content_ref && unit->type <= VVC_RSV_IRAP_11) { const H266RawSliceHeader *rsh = unit->content_ref; has_inter |= !IS_I(rsh); has_b |= IS_B(rsh); -- 2.48.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".