From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=jvYXkr8wom1kD3aiVkVLVTAEA+L46DFJ0vDuzBB0LXo=; b=OHkZldWLvmURRcs50fH9QHOOldMEiaETaZen+eBc/MRf4uN66pHKVCgvDapBDQOs/d rEgyj+B0oKM+2u2q5tblyb76E0vomCF9a3GJ2ChyQdU1AIUyXRLK1R0Or+eOeAXv0yaW wiR1bygRwIoFRrB4LmAR9w8a/AjVE08mxNs7vJ6ja+aRdWRHXgYJ1OQeurZ5kmgTgw3S W5nmJweZymsOSSXkVFQA26oal4Sp6dK7grCChEYR16rX/76XzaQtd3o4BDQTEy/L1QdA HiTEHbWep+Nl8TC5uUyDh/B3SdkU83jZZ943SP6t123zvWHjHEZMbwfANRIczoiSANIL azqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=jvYXkr8wom1kD3aiVkVLVTAEA+L46DFJ0vDuzBB0LXo=; b=I69LzPCJLqaEWodRTNDQ2Ae9Dc1T7DKzpG7Fcf1GcIhijYvfzhs/137YSQZ1TyOP/X YY2lkVWYnNblyk8BsVOQoW0X5WPADe16l/ZQs8tZfV3Dz8PKUm7feeSnZ5GcGUGdOnlg TEv8b8Z5QOvAGuKsxcNgJ9S0z3cSGcWcA1u6E7ksobIgyaD6GBb89X41oBueJTypBRwP /HweBWph1XSCaFKPN4Z3zKnPNogcvuhOqnohfTZplVLcPErT//xj24SA2F3rB2b5P15k PRG0lhmH2FnfJ8+iQX2H7qnhMtPXYbNr6nX68STpWxm6ztQ/ovEfwcLTMQJTHfqONE5y ADVA== X-Gm-Message-State: AOPr4FWvILxli+E3Y4XCq9ux7+XDtVQ/XhgwzXS8xFSYnWVuSpY1lGVX9rj1Z754sTlC873T X-Received: by 10.194.205.167 with SMTP id lh7mr9638723wjc.30.1461766486859; Wed, 27 Apr 2016 07:14:46 -0700 (PDT) Received: from xps13.localnet (51.111.75.86.rev.sfr.net. [86.75.111.51]) by smtp.gmail.com with ESMTPSA id jh2sm4278476wjb.39.2016.04.27.07.14.45 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 27 Apr 2016 07:14:46 -0700 (PDT) From: Thomas Monjalon To: "Mrzyglod, DanielX T" Cc: dev@dpdk.org, "Ananyev, Konstantin" Date: Wed, 27 Apr 2016 16:14:44 +0200 Message-ID: <1915005.xHanf6BQGO@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <2601191342CEEE43887BDE71AB97725836B40DA5@irsmsx105.ger.corp.intel.com> References: <1461340850-202703-1-git-send-email-danielx.t.mrzyglod@intel.com> <2601191342CEEE43887BDE71AB97725836B40DA5@irsmsx105.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] app/test_acl: fix division by float zero X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2016 14:14:47 -0000 > > 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