From patchwork Sun May 4 01:51:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan McCrohan X-Patchwork-Id: 4107051 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D4AF79F169 for ; Sun, 4 May 2014 02:10:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2535C20256 for ; Sun, 4 May 2014 02:10:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5996620254 for ; Sun, 4 May 2014 02:10:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753450AbaEDCJ6 (ORCPT ); Sat, 3 May 2014 22:09:58 -0400 Received: from fep15.mx.upcmail.net ([62.179.121.35]:54215 "EHLO fep15.mx.upcmail.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753440AbaEDCJ5 (ORCPT ); Sat, 3 May 2014 22:09:57 -0400 Received: from edge02.upcmail.net ([192.168.13.237]) by viefep13-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20140504015132.KCDV398.viefep13-int.chello.at@edge02.upcmail.net>; Sun, 4 May 2014 03:51:32 +0200 Received: from lambda.dereenigne.org ([188.141.43.74]) by edge02.upcmail.net with edge id xdrV1n00U1c0xrw02drXD5; Sun, 04 May 2014 03:51:32 +0200 X-SourceIP: 188.141.43.74 Received: from localhost.dereenigne.org ([127.0.0.1] helo=lambda.dereenigne.org) by lambda.dereenigne.org with esmtp (Exim 4.82) (envelope-from ) id 1WglaT-00068e-KB; Sun, 04 May 2014 02:51:29 +0100 From: Jonathan McCrohan To: linux-media@vger.kernel.org, pkg-vdr-dvb-devel@lists.alioth.debian.org Cc: Jonathan McCrohan Subject: [PATCH 2/6] [dvb-apps] dvbscan: fix infinite loop parsing arguments Date: Sun, 4 May 2014 02:51:17 +0100 Message-Id: <1399168281-20626-3-git-send-email-jmccrohan@gmail.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1399168281-20626-1-git-send-email-jmccrohan@gmail.com> References: <1399168281-20626-1-git-send-email-jmccrohan@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Reproducible using 'dvbscan -out raw - some_file' Bug-Debian: http://bugs.debian.org/606728 Signed-off-by: Jonathan McCrohan --- util/dvbscan/dvbscan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util/dvbscan/dvbscan.c b/util/dvbscan/dvbscan.c index f23411f..462c275 100644 --- a/util/dvbscan/dvbscan.c +++ b/util/dvbscan/dvbscan.c @@ -198,6 +198,7 @@ int main(int argc, char *argv[]) } else if (!strcmp(argv[argpos], "-out")) { if ((argc - argpos) < 3) usage(); + argpos+=3; } else { if ((argc - argpos) != 1) usage();