From patchwork Sun Jun 11 14:05:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timo Rothenpieler X-Patchwork-Id: 3915 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.10.195 with SMTP id 186csp512292vsk; Sun, 11 Jun 2017 07:07:16 -0700 (PDT) X-Received: by 10.223.153.166 with SMTP id y35mr4472200wrb.41.1497190035935; Sun, 11 Jun 2017 07:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497190035; cv=none; d=google.com; s=arc-20160816; b=j1bxItp8PafLQUEviMwT2DShEtfVw0xCuj+JEv6sODJRIUawLGLrf8fIs3yDXLFFDh Crq0LrA5llJqY5bSkhEjmHHiArCaMlhxnHhO1h8r046dKS+/gmSAiO+4HCQhhg8+vn7x b50NdXwHvvpSqG4CHsB2LphvG0gGcJ/WEZNsPSSA5h4RahppynsyoOg8eorM9rRc8s1v 5W3gavyijCFccufToG+d2eq0ATUnjR9AsPDYMcoK2XwUaTEK49MqhA/R/MAS7lu5Xvop CKnrnPmiX2MXDUICyjLuybANkUIa8+AspAZnROTR5kV+x1oUbjPrkG5cUxolCTU7aNCC +bTQ== 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=gYVwaF6F7Qrti3/eZ0CJ6A4goybYNjRXqck9dX82XJA=; b=mGbm9Wm8AjYnnpE0610odKUoa4TwkvAUpUYBCuWPYKwidVsh5a8UoyDSErJA5uBm+g Vi8g6yzxukP+yle/4VjE8/4cjCXFRzylfAOrfcjXKFwLU9ClS5jUlZZGf7rkgOCg1D0Y y5C8gWUHPjc6e5E6KP5xsMRV4XG0PJnsvYsfD+JqUuwltW3llhps5zUECN6SGQhkYW6e Rt02toaJjOXqiF0RZRQD13HJackXt1r0372MY88OLSWwboSkEpOhxE1m96QyF5s1oX9Q EiaUTEmQseCcGvQLwtkANa4/3HaBGeYyDB1hd0iJmcNtAd6+sGswtA175KDFqVq0YGEr +EYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@rothenpieler.org; 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 m131si5118569wmb.140.2017.06.11.07.07.15; Sun, 11 Jun 2017 07:07:15 -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; dkim=neutral (body hash did not verify) header.i=@rothenpieler.org; 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 B4A58689E99; Sun, 11 Jun 2017 17:06:10 +0300 (EEST) 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 28019689B93 for ; Sun, 11 Jun 2017 17:06:07 +0300 (EEST) Received: from localhost.localdomain (unknown [IPv6:2a02:8109:43f:959c:ba97:5aff:fe10:ec69]) by btbn.de (Postfix) with ESMTPSA id CDAB76A528; Sun, 11 Jun 2017 16:06:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rothenpieler.org; s=mail; t=1497189963; bh=9lNzucgVgQf4Izos5SCj5w2ZgFQ1I4J78zCeBQaGKPc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ekNO7u89J/hjC6PFhK7RvwboB47iypm6kuZUKm9Ya2OxDasVOAYk3R4es3O+S2wgb HyadT65boydsp93IR6KRv0JHT47/prxxFp6sqZnmFaMLq23slCpva6IAkEzicSuH+G SBZ2eCAnBexWTMTk15kByL/sahd41I3Zfde1kR54= From: Timo Rothenpieler To: ffmpeg-devel@ffmpeg.org Date: Sun, 11 Jun 2017 16:05:51 +0200 Message-Id: <20170611140551.11844-9-timo@rothenpieler.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170611140551.11844-1-timo@rothenpieler.org> References: <20170611140551.11844-1-timo@rothenpieler.org> Subject: [FFmpeg-devel] [PATCH 09/11] 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 CIDs 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) {