From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 54C5D6942 for ; Tue, 31 Mar 2015 12:28:34 +0200 (CEST) Received: by wgoe14 with SMTP id e14so13663145wgo.0 for ; Tue, 31 Mar 2015 03:28:34 -0700 (PDT) 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:content-type; bh=rxjU/BXhTafa1PHItsxdX1Ohta5l8K3fmmNIC/60b9w=; b=B+eUfOn9/qq3tejuzpVIUEcUPdnUREclzscaDOsYqbGDD0JnvlTJmuQMb/uwbIqX3O uwy+BvObSIhnqa2cXaOkz+XNvElFmhJWKt529mFIpSYuN4aYkgMPgQOEbNqlC0a8G29p eDOSlNjKsqOP5xraJL5l1J7hWIn+8GOnxprBP5qHXfs6KcDYlv6e9FCSdUDjvFRWNieo bmRYW5EsX4Bv1HalO3ZSX81RsuSVJo1wiAxVvvglpXYehMDAtuPidpzr7RGOTn2dgBuE p+rT2jlz9g0UUXAvBUAX0BMiefzkGW0zx2s10hkmajhd47bxoKxJXE/1iNuXOZLLJzbE nz0Q== X-Gm-Message-State: ALoCoQlx9RmKz+0A6mBbrjASxVCTMmG4bCikbl1AcKXiiW+07yNZGfVplbYB5sUIoCnfNLGKwjjX X-Received: by 10.180.84.69 with SMTP id w5mr4267104wiy.18.1427797714210; Tue, 31 Mar 2015 03:28:34 -0700 (PDT) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id ka1sm19720042wjc.2.2015.03.31.03.28.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Mar 2015 03:28:33 -0700 (PDT) From: Thomas Monjalon To: "Zhang, Helin" Date: Tue, 31 Mar 2015 12:27:53 +0200 Message-ID: <2026242.YxCcPjBAVc@xps13> Organization: 6WIND User-Agent: KMail/4.14.4 (Linux/3.18.4-1-ARCH; KDE/4.14.4; x86_64; ; ) In-Reply-To: References: <1423740143-29708-1-git-send-email-jingjing.wu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] i40e: fix the issue reported by klocwork 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: Tue, 31 Mar 2015 10:28:34 -0000 Hi Helin, > > Klocwork reports array 'src_offset' may use index 16. > > In function i40e_srcoff_to_flx_pit, index j + 1 can reach > > I40E_FDIR_MAX_FLEX_LEN. > > This patch fixes this issue to avoid array bound. > > > > Signed-off-by: Jingjing Wu > Acked-by: Helin Zhang Please confirm it's a real bug which needs to be fixed in 2.0, and/or you are sure this patch won't bring a new problem. Thanks