From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] app/test_acl: fix division by float zero Date: Wed, 27 Apr 2016 16:14:44 +0200 Message-ID: <1915005.xHanf6BQGO@xps13> References: <1461340850-202703-1-git-send-email-danielx.t.mrzyglod@intel.com> <2601191342CEEE43887BDE71AB97725836B40DA5@irsmsx105.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "Ananyev, Konstantin" To: "Mrzyglod, DanielX T" Return-path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 02C8437AA for ; Wed, 27 Apr 2016 16:14:47 +0200 (CEST) Received: by mail-wm0-f44.google.com with SMTP id a17so17985835wme.0 for ; Wed, 27 Apr 2016 07:14:47 -0700 (PDT) In-Reply-To: <2601191342CEEE43887BDE71AB97725836B40DA5@irsmsx105.ger.corp.intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > Fix issue reported by Coverity. > > Coverity ID 13240 > > > > This could cause an immediate crash or incorrect computation. > > > > In search_ip5tuples: An expression which may be zero is used > > as a divisor in floating-point arithmetic. > > > > divide_by_zero: In expression (long double)tm / pkt, > > division by expression pkt which may be zero has undefined behavior. > > > > Fixes: 26c057ab6c45 ("acl: new test-acl application") > > > > Signed-off-by: Daniel Mrzyglod > > Acked-by: Konstantin Ananyev Applied, thanks