From patchwork Sat Aug 4 00:58:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 9883 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:104:0:0:0:0:0 with SMTP id c4-v6csp737535jad; Fri, 3 Aug 2018 17:59:23 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd6BRfPE/l4fxVjJ9iTgNZNtG0ULtQdvXjPpbO1mhpL1H2tdMO+CQ0WA32s4IQSN0T11lZx X-Received: by 2002:a1c:30c3:: with SMTP id w186-v6mr5853096wmw.153.1533344363050; Fri, 03 Aug 2018 17:59:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533344363; cv=none; d=google.com; s=arc-20160816; b=m5vGWxiFKGVZwsZOmdWyRYfT86F0IEU6NxvDZcSRa7zfrdip//8ScDJ37gRkv/vMZp uLP4Sj66/5AO1ti+rjfy1Mx932rtO8UobZ3EJ/lnES/4NH3TiDAOXtNm0Z68vyLsoS62 l25etO8Y0aa3bMXQz9g8fhh/fDqaNZoE1fwdnEinK4aIvJjbWVOxBo7xKC6O2453Lvb+ XfrLVa4tzj2ckw8EnDZPxh5j994TPxu66C25oT03x8cbYeMy0ZIayLnRwZ+GI5GWH2nW 15KCnnGaFx4nE/4GPM7alMSGOtomANwUqFWxdQcEjEiyetsIDysvur5SqHCApxnxbA3U 2/mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:delivered-to:arc-authentication-results; bh=pLFFayYMPH8jrWOSs1Q1y56eE/0QAXgQeCeu4AO9R4c=; b=MyAHXVgxtvqHmfmo2lPAVq5OEKVmWSDAg9X3EaMXox2SbT2CkaRxp6JhqgjS13DdRs DW9egs0ZIj+nCwS6MP2Q7YSKt2cuKgAKMHRQ2M8EqZyV2YXLbjrRqlYFRZCCUiPawdvF QevsHnKVOpl67T4/3TWxwC/RK0lvQOhTrvIuW00rRY/U04Z0OYU9e8cjT9PDRvDjXo65 Ei+mEGzacslsM4rAH1ulwdtMHIWc8tkV/LKFf9FSPPAb7uwz8sgzgMkGzj0ij52BSDDE vdWE9Du05IGIWzX7dyUgWIC4xA097vo8p9VwzBWKaOuAnq1/bVmbrbnRp/6ItwP6oRse CDKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id e26-v6si4519662wra.250.2018.08.03.17.59.22; Fri, 03 Aug 2018 17:59:23 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AE022689F89; Sat, 4 Aug 2018 03:58:57 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe07-2.mx.upcmail.net (vie01a-dmta-pe07-2.mx.upcmail.net [84.116.36.18]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DD242689C42 for ; Sat, 4 Aug 2018 03:58:50 +0300 (EEST) Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe07.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1flkuT-0004L6-Ku for ffmpeg-devel@ffmpeg.org; Sat, 04 Aug 2018 02:59:09 +0200 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id Joz51y00l0S5wYM01oz63j; Sat, 04 Aug 2018 02:59:06 +0200 X-SourceIP: 213.47.41.20 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sat, 4 Aug 2018 02:58:31 +0200 Message-Id: <20180804005833.16836-2-michael@niedermayer.cc> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180804005833.16836-1-michael@niedermayer.cc> References: <20180804005833.16836-1-michael@niedermayer.cc> Subject: [FFmpeg-devel] [PATCH 2/4] avcodec/indeo5: require initial valid intra/gop headers not just later X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Fixes: Timeout Fixes: 9308/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_INDEO5_fuzzer-5284853581873152 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/indeo5.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/indeo5.c b/libavcodec/indeo5.c index b39cffd9a9..7b9da53df4 100644 --- a/libavcodec/indeo5.c +++ b/libavcodec/indeo5.c @@ -642,6 +642,8 @@ static av_cold int decode_init(AVCodecContext *avctx) IVI45DecContext *ctx = avctx->priv_data; int result; + ctx->gop_invalid = 1; + ff_ivi_init_static_vlc(); /* copy rvmap tables in our context so we can apply changes to them */