From patchwork Wed Nov 8 18:17:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timo Rothenpieler X-Patchwork-Id: 5954 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.90 with SMTP id m26csp1072639jah; Wed, 8 Nov 2017 10:19:42 -0800 (PST) X-Google-Smtp-Source: ABhQp+R1X2SibBS6di/6kELUPHPhW9iGXB3zq+zwZAleux/Vc2ZWouQU19A112D4d3t13nDY+8Zy X-Received: by 10.223.139.10 with SMTP id n10mr1317002wra.156.1510165181985; Wed, 08 Nov 2017 10:19:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510165181; cv=none; d=google.com; s=arc-20160816; b=kegFYlhciFJsKO16f9mfEBafBa6EKhtsq7JdYRu/BV5g1VsDPyH+xZPdo+WWUcurOh q8NbW/Eti+uOZWWWRJ3gTZoe7/LwAbs8zZ9JQ4pBpUuU+dIeuVg1Je7apl6AeY1UNEOl /zVklNO9IAWmFAb4KNDs0IqHFEkl0Zk52Qgx9WB0hyLH3+GPNpYXIQBazyEYLdd+MFJP LBSkOi+J+Gkj4EUCF4js9cR2GfZoGQW7DHscwls6NV/LpqDlGSD9QQL7E+76it74NjSe nmXzsLuAPgYi7d1RO9QU5nXbXPgZGDdDOck0EvZdo06eAm3OZ2YTEoyWySAlNcksAUIm 3epg== 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:cc: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:dkim-signature:delivered-to:arc-authentication-results; bh=V/g+dbFi0cqjUi2oY8YU/aZtHoami2hRNRIU/6tq8K0=; b=VF//GR5aAg8NgnZQu3yy1TIXkALKkPoG+OPazvhj21IX81sWClpoVZsZwcre/cRKtG j1Tjsqir3+Kgaqc0UTMpUK0l3kQwt2MeqkjJ4yQ+Fc5IgZU0uf6NP9pAFOT79eGFFE0+ NWzNqztIxSBS3JkUBgkt9mozXFYOD9JHcAlaSz2NXGUSqkxR71CN8hqUFPFhcjWPd7xj ueQ7gZEGnhDAgyCawrWLonfnkrGZQUhQALqMxP/491BkPW1N4GwuZxlb6g7oB3fNs/5O sAwAndLvNRCoSf1Caskr35w3NgebFDjMTCxPMxAaYxuIdRZMuvB6U4SnGDxtH/evn0sW LJqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@rothenpieler.org header.s=mail header.b=lFFGM/gF; 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 f5si3737494wrf.288.2017.11.08.10.19.41; Wed, 08 Nov 2017 10:19:41 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@rothenpieler.org header.s=mail header.b=lFFGM/gF; 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 EF1A8689EE1; Wed, 8 Nov 2017 20:18:08 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from btbn.de (btbn.de [5.9.118.179]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A6D47689E65 for ; Wed, 8 Nov 2017 20:18:01 +0200 (EET) Received: from localhost.localdomain (ip4d15a587.dynamic.kabel-deutschland.de [77.21.165.135]) by btbn.de (Postfix) with ESMTPSA id 4CE0C1116A3; Wed, 8 Nov 2017 19:18:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rothenpieler.org; s=mail; t=1510165090; bh=/DCUNPBvwAuqi7tMwsk6znP0IbLHujnPiYJeihjf4cA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=lFFGM/gFQE3B9jxh4zNmOgbIznn7Y0uzLUqUMnHJKsA+r1g8Fqeo61vgH6ICQtCGE 92bgo+7e+Gizom/+y4Q0CUEZf79UXb2lFirXIKSKIlPB+8T4WaRxUoXqN1z1R4AwzX Ty71g2EeDK6OgCggO1GMAKZWzQNUMVYlL3O1Ir+0= From: Timo Rothenpieler To: ffmpeg-devel@ffmpeg.org Date: Wed, 8 Nov 2017 19:17:53 +0100 Message-Id: <20171108181753.6776-10-timo@rothenpieler.org> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20171108181753.6776-1-timo@rothenpieler.org> References: <20171108181753.6776-1-timo@rothenpieler.org> Subject: [FFmpeg-devel] [PATCH 9/9] avfilter/signature_lookup: fix potential uninitialized reads 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 Cc: Timo Rothenpieler MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Fixes CID #1403238 and #1403239 --- libavfilter/signature_lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/signature_lookup.c b/libavfilter/signature_lookup.c index 272c717c77..7de4a88ca2 100644 --- a/libavfilter/signature_lookup.c +++ b/libavfilter/signature_lookup.c @@ -421,7 +421,7 @@ static MatchingInfo evaluate_parameters(AVFilterContext *ctx, SignatureContext * int fcount = 0, goodfcount = 0, gooda = 0, goodb = 0; double meandist, minmeandist = bestmatch.meandist; int tolerancecount = 0; - FineSignature *a, *b, *aprev, *bprev; + FineSignature *a, *b, *aprev = NULL, *bprev = NULL; int status = STATUS_NULL; for (; infos != NULL; infos = infos->next) {