From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 70D93A0547; Mon, 19 Apr 2021 10:12:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2A9B940683; Mon, 19 Apr 2021 10:12:34 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id EC2BF40040; Mon, 19 Apr 2021 10:12:32 +0200 (CEST) IronPort-SDR: 70w2yzhKt+dSX883Af8XI9HqEm9BmTr5dV3Wq3HMbdghdP57g1qlXtDXpMrdhvfUchJ76taGTN 4C6n9/hUcD+Q== X-IronPort-AV: E=McAfee;i="6200,9189,9958"; a="174776531" X-IronPort-AV: E=Sophos;i="5.82,233,1613462400"; d="scan'208";a="174776531" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2021 01:12:31 -0700 IronPort-SDR: 44cu+6Lo/y6vgbmamvximsUy6DxpI5fLv6CoBYPa4IkT++1RKvO0LWBdHdXrnUMDEHOaOjLa2I Ug9sxRiQFxHQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,233,1613462400"; d="scan'208";a="616523831" Received: from irsmsx605.ger.corp.intel.com ([163.33.146.138]) by fmsmga005.fm.intel.com with ESMTP; 19 Apr 2021 01:12:30 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by IRSMSX605.ger.corp.intel.com (163.33.146.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Mon, 19 Apr 2021 09:12:28 +0100 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2106.013; Mon, 19 Apr 2021 16:12:25 +0800 From: "Zhang, Qi Z" To: "Huang, Wei" , "dev@dpdk.org" , "Xu, Rosen" CC: "stable@dpdk.org" , "Zhang, Tianfei" , "Yigit, Ferruh" Thread-Topic: [PATCH v2 1/1] raw/ifpga/base: check size before assigning Thread-Index: AQHXLFU9O/d4Vhs4GkShF9W0pUESf6q7jq2w Date: Mon, 19 Apr 2021 08:12:25 +0000 Message-ID: <4e1e3b11cfb24c87b3eac9e023a3090d@intel.com> References: <20210408085151.54996-1-wei.huang@intel.com> <20210408085151.54996-2-wei.huang@intel.com> In-Reply-To: <20210408085151.54996-2-wei.huang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2 1/1] raw/ifpga/base: check size before assigning X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Huang, Wei > Sent: Thursday, April 8, 2021 4:52 PM > To: dev@dpdk.org; Xu, Rosen ; Zhang, Qi Z > > Cc: stable@dpdk.org; Zhang, Tianfei ; Yigit, Fer= ruh > ; Huang, Wei > Subject: [PATCH v2 1/1] raw/ifpga/base: check size before assigning >=20 > In max10_staging_area_init(), variable "size" from fdt_get_reg() may be i= nvalid, > it should be checked before assigning to member variable "staging_area_si= ze" > of structure "intel_max10_device". >=20 > Coverity issue: 367480, 367482 > Fixes: 96ebfcf8125c ("raw/ifpga/base: add SPI and MAX10 device driver") >=20 > Signed-off-by: Wei Huang > --- Applied to dpdk-next-net-intel. Thanks Qi