Received: by 2002:a25:9945:0:0:0:0:0 with SMTP id n5csp5405538ybo; Wed, 8 May 2019 15:06:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwykOPtl6dDDB2FAhd2shZM9kRKRYutjShIbGbHZcKV4EkFGDimTf2SblRrIZoK6X0PwPT/ X-Received: by 2002:aa7:87d7:: with SMTP id i23mr36367782pfo.211.1557353195074; Wed, 08 May 2019 15:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557353195; cv=none; d=google.com; s=arc-20160816; b=PR0oa27PNVY7AP5PgiKXxqlZ5MmdYggO4JwmbQra4i/XsP02kOD9bOR9b5wbKbvJFK +C4uk9jcAVkw/YFOsorjPJZma/I1Tc0j7QHHHpp6Z2mUPOJGMPhDJIAKJzItcfTt9O8n 26v+9Str9+uFzh7xFqkqV9Y9+D7lJnzZf9AfuCh/GRWBl3B1hKuiPqqLjoIa0mr6koHP mxdnRucc8S3vVAsv+VKD4r6qItrZPl3jzD0TeChwnbsvcEFLFXl3PBup+44+9+HIODZR rCSheSZ5temEvamuU2MuFCEiK9J+b+mUpAIThPZHUCP/t/tCV5bnvTFhtsS+VDblGjch irWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=MGf/FC0g6p4ueu02ifcXTtTD7ZcvSmVmHb921qzsBjg=; b=vVwMM3DkBSvXSS+1uwoUKecGbid1O7zvWd04xqAgBu9TEPFq1X6CACVAQLeu6ZEoo+ 6Inhu7F4iGXBUfupwch7XutrGnOwzv3ttzclx2o64X9LKm8T2iaMT9jot5rlqkmkT6t/ gnFCrJ9mGdyFJNmHT7zlimJzax49KSsY3fubvWnE1h2Qbd0buXmD4egRftLejscRpZqL xeE7EK6libmKxl3zDoLBxMxnLO7/UNOxiLtIBSEYrRhzBAFEcx8ADuw14KTnjDpvmbyJ jWUoj5DZR2vFgb9r4sWU3xjEmTBVDc1jsxBRK4y+vugDk93avM6aLQcs6xwbzwVYmz0Q ZwdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SiLzYav9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 202si233015pgh.575.2019.05.08.15.06.15; Wed, 08 May 2019 15:06:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SiLzYav9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728760AbfEHWD4 (ORCPT + 99 others); Wed, 8 May 2019 18:03:56 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:35826 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726837AbfEHWD4 (ORCPT ); Wed, 8 May 2019 18:03:56 -0400 Received: by mail-lf1-f65.google.com with SMTP id j20so57172lfh.2 for ; Wed, 08 May 2019 15:03:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MGf/FC0g6p4ueu02ifcXTtTD7ZcvSmVmHb921qzsBjg=; b=SiLzYav9aW4ToUPViKxq1NLGFfY90ZvGWXwcVbsA6dciF73vyhyCsOROBTTVyxChMp 9BjpkGreeqKWLjXp714tBzNHU22K1cyndOQkz57kpkGCOTenLpXO77E5k5wG7Yykvg0R ++LSspvitjeOxhnWBr1T4hvd7fGgTtXGXYY2PpB2OtPKdxXKJ81wg8vkt7BDTiILdNZ4 RxnGcvpdIBgkgTFrz030t4vmeoO6IjuW+QrAPCMJ46EMf54cAw0Wud2bQbQV3bC6lwje S1utLL6flMV/6D2/y+wXClFLh+sMMihTCbN30y6NSVtgAK87PNSanE8kIClVBfXI+L3u eukA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MGf/FC0g6p4ueu02ifcXTtTD7ZcvSmVmHb921qzsBjg=; b=Em5VxtCbBBSMMSq/mjpnzYtNv/ms8oMMTn0Iov6Wg8h5wdusZgPLLhLLGzpftZ76dO g8RxLFDKeCfETnR5sGhiXkZwvZjAQk9VcxYLOBidD0z3+Q7QYJ5vqw45XqSN+qCK6kb7 OlUfa4F0C2I1nq6A67qBFB0e8UBFkBG+b/xF8dIwtADd2FJCGBpK0C5hH4pTnmxDW6bu nPSgcNQdGsEZVSDkQhYwDggvrYZC5+B08w+9WY6dgtZMDbW9jNpiUgy1gKoLbqVKF518 NQJZuIRyqOxjDmBNZQB9g8ITzK5ABq4I1oOhgjXsp1HQiIf1z2K5SXgAdx3mldS91Klw PWlQ== X-Gm-Message-State: APjAAAUTSPX1R6biKbep3G8xlQG9pEhX3pn06xyySY29vwokiWpZCmAj 0mIn7x3+zw3wL64YBqZoGyKgchY6xyVE/QtWTSo= X-Received: by 2002:a19:7411:: with SMTP id v17mr277816lfe.116.1557353034007; Wed, 08 May 2019 15:03:54 -0700 (PDT) MIME-Version: 1.0 References: <20190508174356.13952-1-borneo.antonio@gmail.com> In-Reply-To: From: Antonio Borneo Date: Thu, 9 May 2019 00:03:32 +0200 Message-ID: Subject: Re: [PATCH v2] checkpatch: add command-line option for TAB size To: "Elliott, Robert (Servers)" Cc: Joe Perches , Andy Whitcroft , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 8, 2019 at 11:14 PM Elliott, Robert (Servers) wrote: ... > Checking for 0 before using the value in division and modulo > operations would be prudent. True! From command line, $tabsize is parsed as integer so I should sort out any non-positive value. Will add a check after GetOptions(...) die "Invalid TAB size: $tabsize\n" if ($tabsize <= 0);