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 1EF8C479D9 for ; Fri, 26 Apr 2024 23:52:44 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id EC8D268D3FC; Sat, 27 Apr 2024 02:52:23 +0300 (EEST) Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E6B5768CD5C for ; Sat, 27 Apr 2024 02:52:14 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 2C02E1C0003 for ; Fri, 26 Apr 2024 23:52:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1714175534; 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=sTtT45sh7fncmcCB/C1WbGJskz5sYdZE1fhc86qdBg8=; b=gQPz+xFNUAbYL8U6vyUgvA3pjmcQhMqvyZAYTRl2WFS3cRYC68KPJF1un7Ydl/dAAkjerp RPoBNV9VP6/KfnMDmgnlVXhTfQJCnRudv5PCB3XVh3ljGv9buaIbbAExq2/g3MJRAi5t9E Bdilf5qtiQxk02UOfNzY8l9edGMEymdaaPIyFSgwUXvRS/kPTtm248O/32HqggCX0AYHuU dhJjLcQ0Y8kNkfSxetjcBzmcZ6U1KsIvsrAbSJRbhPWNyLnA9zbEUunsRNX4h7GjPVld+n sYEpMSkZQS9EP9FzOSivnQjewhyFwuw5p9JqCNW90RsJZo+jEIdKtkBQOtCxKQ== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sat, 27 Apr 2024 01:52:09 +0200 Message-ID: <20240426235211.3718252-3-michael@niedermayer.cc> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240426235211.3718252-1-michael@niedermayer.cc> References: <20240426235211.3718252-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 3/5] avcodec/decode: Check progress before dereferencing 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: NULL pointer dereference Fixes: 68192/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP8_fuzzer-6180311026171904 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/decode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index d031b1ca176..a6131941f43 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -1744,6 +1744,8 @@ void ff_progress_frame_report(ProgressFrame *f, int n) void ff_progress_frame_await(const ProgressFrame *f, int n) { + if (!f->progress) + return; ff_thread_progress_await(&f->progress->progress, n); } -- 2.43.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".