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 03448A0524; Tue, 20 Apr 2021 02:13:59 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 81A0F41448; Tue, 20 Apr 2021 02:13:59 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 6693440685; Tue, 20 Apr 2021 02:13:57 +0200 (CEST) IronPort-SDR: yk/341KE+m6lPL59BjK/bTQOOzSM0zKODjYMel6fNHNfSYL3wfixAqgETXQSb+uujYl14MqIVf Q6V0cYHawcDA== X-IronPort-AV: E=McAfee;i="6200,9189,9959"; a="193294448" X-IronPort-AV: E=Sophos;i="5.82,235,1613462400"; d="scan'208";a="193294448" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2021 17:13:55 -0700 IronPort-SDR: CQa97k8wvjKq6N2rdO8UpKINQZOyvlbQVQ7m15rlRzHB7PX6SW32VS0riEyupj6AzYUGr+yajK lnhBn/FeOVTQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,235,1613462400"; d="scan'208";a="613550929" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmsmga006.fm.intel.com with ESMTP; 19 Apr 2021 17:13:55 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX601.amr.corp.intel.com (10.22.229.14) 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 17:13:54 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX612.amr.corp.intel.com (10.22.229.25) 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 17:13:54 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2 via Frontend Transport; Mon, 19 Apr 2021 17:13:54 -0700 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (104.47.37.58) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2; Mon, 19 Apr 2021 17:13:54 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ACGtqPQYA8NPzSrMbaRT2vU1zsZ/HLA2z2FFpU8MB4iFvcy+MXQ1TXHCnRDa4QyJurO7uTNKKZKmgV4M108MxwEwsru/dP0SWfWEiX+VDq4Nhgu+F5R5eX6HGnQJ6VWVREWgs4ByjdSKZ8xlVs3dIqfYS88bATYqPjcd9Sns1x+e/tuMEKLH8RgA94F8NxKitCv5HEI4wWRHtw1t2c1taChIVMr8+2vKGAl4qQSjjtqaDKN3LI2OQ4MVEPmpHf4EhZNw67F494Yb2B3+Ui0iVUGT9Te41BqJL8bQoPQGoIuWbeA8fkrqm1BH9sIc0V7TUtMpgHcqtsj74a7iLgHB1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QitVjydWaJUdEQWcWmpTI8HsGheKVxGlil5LsSeX5sI=; b=ljFLdY+bVuMJuBcujjVCO8G4TOpQymKlZQymaMvv4y5KgsX4LFt3fDrEjoXa6+Txa+rrpPTVbMV6n5G5lXGOZ2D6unM0ZbbFjCgs6gZpTrxu8x3vIY1MXaj218L+bFhVeyYxi9NPTwcE+t/dOm5asANe2J30m/m5Jz/jWQdL3mdvWbW38W0r55w2CXIfni/Txe+WzJOLroj7IfP9Eb3LiPpN5JCvoZrDtDQHY2DVBRizZgL0UOu+t8kEtDte8dUxSV584YN7HBAYnpkVGqIfd+H/OIWcFT0DGWh9uyjcjeUYW7A+bdJUBRRhQhe8wcYyn7bZNzrg45r42MQzH6xHZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QitVjydWaJUdEQWcWmpTI8HsGheKVxGlil5LsSeX5sI=; b=cte4ZLlZjEi8hOR9IZu/Mj5B1R3S8Jj5YCeg4r/KLZZZbqXCaPI7Uicgq74qSpPydQc2wRE89LZc/c0XJuUBMIyA7dBHE7AruCuf3agWlQoVK4YJj5xHW6FbQuLgQIlOyx3JI3sSvWriHTrKQKDBNPu4SxB4cI6GoAbPcHSZbvI= Received: from DM6PR11MB3131.namprd11.prod.outlook.com (2603:10b6:5:6d::32) by DM5PR11MB1628.namprd11.prod.outlook.com (2603:10b6:4:c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.16; Tue, 20 Apr 2021 00:13:52 +0000 Received: from DM6PR11MB3131.namprd11.prod.outlook.com ([fe80::181b:59f1:8b7e:b9db]) by DM6PR11MB3131.namprd11.prod.outlook.com ([fe80::181b:59f1:8b7e:b9db%6]) with mapi id 15.20.4042.024; Tue, 20 Apr 2021 00:13:52 +0000 From: "Zhang, Tianfei" To: "Yigit, Ferruh" , "Zhang, Qi Z" , "Huang, Wei" , "dev@dpdk.org" , "Xu, Rosen" CC: "stable@dpdk.org" Thread-Topic: [PATCH v2 1/1] raw/ifpga/base: check size before assigning Thread-Index: AQHXLFVANEQUA+3GL0qGjI4Jy//HrKq7jsuAgADxPoCAABsswA== Date: Tue, 20 Apr 2021 00:13:51 +0000 Message-ID: References: <20210408085151.54996-1-wei.huang@intel.com> <20210408085151.54996-2-wei.huang@intel.com> <4e1e3b11cfb24c87b3eac9e023a3090d@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.5.1.3 dlp-reaction: no-action authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [117.186.6.152] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7a028dc6-8f6a-4f11-e9ad-08d903912dab x-ms-traffictypediagnostic: DM5PR11MB1628: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3276; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: NJqcleHpO8OM8Etfm70X5gY97YUsqMhnvIeaba8Xykt9nPKEgKQzks2bAr6aNWvzoTILg3t8QIDHHEImU4qmBxEzjS1UXLciqLCVQGZqJkVxGXw5jmBAAl+wzfVpdAJ38Tev+boWP7PMYXmjXHt3+Y8EwOwvCbJEZ29Duh9GIm6UOAzwvBbqgUk+kxGesx/N+Seci9/pfGVV57JoYVuHpOQIZQFwMg0XXciQmZZ+iuV8xAjFPFm9vwbCLGydDPZxFgKXMShVpTQgJyHOAUiHzjXyWUDYGZfzOmpiDCPDxNzyueVs2WESh90K82PPN2YRhJ+d8+0K+n+tBfxWGKleo1LihjrGj0hAVjQkCKsQVqHlm/XWn5IkyUWWDle82i/o2TkAY7lDT5+Z09WTsigDQLR3FfKF96m2awJdxEGlX2oBGQFQYuiAZJM6spV5/oVB8WwsGDWvBn6PfGS0WjTpf0aaoj7/ZtF9yboi+HvALMvWs4j+DgQUe6Mz2oZ1GxE/YlgTcuMnFy4mXNUACZev4rN5HWeK/Un4Yww2S8rvEz2Mg3lt291SngokAwh9BeHQWcv2YSNXSBLIQIAm9lXmD5SCd6iJzc9ABupfyNcjNJk= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR11MB3131.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(39860400002)(376002)(396003)(136003)(346002)(366004)(316002)(66946007)(38100700002)(52536014)(450100002)(66556008)(110136005)(64756008)(66446008)(71200400001)(6636002)(66476007)(8936002)(4326008)(76116006)(53546011)(86362001)(55016002)(122000001)(33656002)(478600001)(9686003)(83380400001)(8676002)(186003)(26005)(5660300002)(7696005)(6506007)(2906002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?utf-8?B?anN0eUpDUXJIVmh0cG5JcGJVTGM2WkhmWHNZeXloT0lrUWxRYlNjUVZ5eTRa?= =?utf-8?B?TGRsM01VU2kyK0dRQWR1UG00clpPNDJ6K1luSEdoa2ZWOWduNnNzN3N3dmFQ?= =?utf-8?B?anczVUdGdXJEYUdXNVc4Q0xwa0dmMEM0UE9icWNOdDNPV0VaZnhXMlRjb3VQ?= =?utf-8?B?cU1wV1M3aXZUUVlQN2FYZW1udHY5YnBIMTl1TUpmRFprSlUyTXRqMTROM2RD?= =?utf-8?B?T09JVXI2ZTNjczZVRisrQ2hTWHpNQktiVlBuV01FMjEwSHpENFNXL2p2NkNJ?= =?utf-8?B?RXFNUHc5dU5pWHg3Q1dYa29IZlV5QUhBdHBQdDZBNFpmRDlYNC9ycTBleklZ?= =?utf-8?B?Q1VlWjRpL1l5bzlpTnluNSttcStaQSs5MWpqMkhic0RVVTZkWFpuOGRzL3RG?= =?utf-8?B?WDk4ZUM0TURqY29KN0ZpNnovT2k0V3ptOWFwTCtzKy9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VRZ0hWNXFoYk9nZUVEWkJkUnI2OFVJeHZ3MWZwSVRl?= =?utf-8?B?T3A3U3FNaklQL2tSZmMyT0dxYTljczRKL3FNT08rU2gwTEU2cUFnMFYzZGZX?= =?utf-8?B?Rm5GalBIdjJTbFBrQ1pjZC9VNzAybUZ6ckcyNTBuS1FESzBVa25lTFVrMGpm?= =?utf-8?B?cXROVVNHbUR6QVI1YzNYT1ZUUVhWclp3ZXNyNUtjbHQrK3REejAyUEl0RmdY?= =?utf-8?B?MEU2ZXBJeHNVWHJCSWp1OStmZDdnaWx6RENlaHVJQ1AyN0FGRUQydTVLc3Mw?= =?utf-8?B?Ti94TU92aWYxQ1BZQzY3ZEM1UnFEQURzZXJHOU5Vb3kyRW5zZlBXNGVITFRt?= =?utf-8?B?TWNvUENYMUtUWVFhMzIzQmR4K1g2bWVUWUFLak91UnIzdlZoclJwVmlLQWlU?= =?utf-8?Q?0p3CUU7ZOX3C743B8vygag7A2uQa/MKb+p98KbL?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB3131.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7a028dc6-8f6a-4f11-e9ad-08d903912dab X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Apr 2021 00:13:51.9948 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: z2mimi2jo1pMQKNi2+wRnCUQx3oer2c6PaGbEFNJtOwglYoPoGN2bTTangrekBROdmlQvXlWu4UTeQqcYdyVBQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1628 X-OriginatorOrg: intel.com 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" DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogWWlnaXQsIEZlcnJ1aCA8 ZmVycnVoLnlpZ2l0QGludGVsLmNvbT4NCj4gU2VudDogMjAyMeW5tDTmnIgyMOaXpSA2OjM2DQo+ IFRvOiBaaGFuZywgUWkgWiA8cWkuei56aGFuZ0BpbnRlbC5jb20+OyBIdWFuZywgV2VpIDx3ZWku aHVhbmdAaW50ZWwuY29tPjsNCj4gZGV2QGRwZGsub3JnOyBYdSwgUm9zZW4gPHJvc2VuLnh1QGlu dGVsLmNvbT4NCj4gQ2M6IHN0YWJsZUBkcGRrLm9yZzsgWmhhbmcsIFRpYW5mZWkgPHRpYW5mZWku emhhbmdAaW50ZWwuY29tPg0KPiBTdWJqZWN0OiBSZTogW1BBVENIIHYyIDEvMV0gcmF3L2lmcGdh L2Jhc2U6IGNoZWNrIHNpemUgYmVmb3JlIGFzc2lnbmluZw0KPiANCj4gT24gNC8xOS8yMDIxIDk6 MTIgQU0sIFpoYW5nLCBRaSBaIHdyb3RlOg0KPiA+DQo+ID4NCj4gPj4gLS0tLS1PcmlnaW5hbCBN ZXNzYWdlLS0tLS0NCj4gPj4gRnJvbTogSHVhbmcsIFdlaSA8d2VpLmh1YW5nQGludGVsLmNvbT4N Cj4gPj4gU2VudDogVGh1cnNkYXksIEFwcmlsIDgsIDIwMjEgNDo1MiBQTQ0KPiA+PiBUbzogZGV2 QGRwZGsub3JnOyBYdSwgUm9zZW4gPHJvc2VuLnh1QGludGVsLmNvbT47IFpoYW5nLCBRaSBaDQo+ ID4+IDxxaS56LnpoYW5nQGludGVsLmNvbT4NCj4gPj4gQ2M6IHN0YWJsZUBkcGRrLm9yZzsgWmhh bm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