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 5E522A0524; Tue, 20 Apr 2021 03:59:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3167841448; Tue, 20 Apr 2021 03:59:58 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 1F67A40688; Tue, 20 Apr 2021 03:59:55 +0200 (CEST) IronPort-SDR: NFWE57qPPBEciM9G1baMZuSYHNV77TbtftYtyTscfiZ0FN3YCBDAYCBtqe2iGceysgEc8zaXtC Tzm2Wgltovgw== X-IronPort-AV: E=McAfee;i="6200,9189,9959"; a="193303920" X-IronPort-AV: E=Sophos;i="5.82,235,1613462400"; d="scan'208";a="193303920" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2021 18:59:54 -0700 IronPort-SDR: SRdxBqF1/jsY3ce1GNrAwr0fBfAdmTbilSAlVpWG3G8nwd+tb4KZKxTshaM6YBGLB5LPwZK3Av LbiltTtD5ivA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,235,1613462400"; d="scan'208";a="383916581" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga003.jf.intel.com with ESMTP; 19 Apr 2021 18:59:53 -0700 Received: from orsmsx605.amr.corp.intel.com (10.22.229.18) by ORSMSX603.amr.corp.intel.com (10.22.229.16) 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 18:59:53 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx605.amr.corp.intel.com (10.22.229.18) 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 18:59:53 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.171) by edgegateway.intel.com (134.134.137.100) 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 18:59:53 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OBdP1dPY0mhlkteHTsghOyWPi2oxIS1jx1zDXAlkhsaM0/MJp9MrlyeOlJKVU/nb/yg8HDvK0w7OuTNg9U2TmUgCzQS2BGzkCZJfeYYq2LwPlLgH6Ps18OaSKhefS1iPKNFGSLuQIl2jqImQuIxFzc+J3aNxTmAoZtp4CQ0TrFeLCY+2KrV+OzPsHqS/Ji1CQU8EGgDmQE7zq2t8TxogJi+8ed+/1MIz3z5knlfffgfQSgDebX782hXtCM6ehlsuBprAQQwMtpDIAT91HM8VNZVjnMVdRzdq+KpHLQ9GLk1FAslh29LkHPlIIsSSAnFjNzHcdYntpFt6qNfrb4kdag== 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=VE9XP8BHPTpoVq1Js/H9sajU8Uv7SVJmsCn0oi6hPYM=; b=IdKZWOWyx0bf7jhm94IoLZESyDjB0pjl9/qN/cxDjLCPO3YYyvqgbsCFrNjhFxjKjj2v+pVv1humT87B/DQuV4UHm3kFDNlzJ5rFXW2uH/n8V0dwi4ar0FRLLw4+6CBoDTfNJkwbcjq3txqLp5SiakYaS6DisdpkWIWj+okRqRDDuyybE/cw7MYwFkkFSHFCV1vr+0lbcTV0KSi7OHcyovDdjGbbFjGBmZAxKsYvZthCUnAKWUQa+91CIrQzbLj+JlLLT2sD4rYlrbTJL2SzLYcEH3gQ1nnoDCzuAjTqfbjjgAyY2+U91DnFy0C36NtIDH6jwHLzFuC5jJJSnB9zGg== 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=VE9XP8BHPTpoVq1Js/H9sajU8Uv7SVJmsCn0oi6hPYM=; b=cH9Utdvk1Hdo/3lTAupjM7pId+xoWbojOWTHnmW6xQhCLvLyofbmUEfvwjbQBUjl2v5HJ9wtLDgqIX25EGXzrXjsL8IrA5OGCxBOmfzC1auR0odJQpVpfBta6YBmmDSbmOwgpsQeS8WZqFhEPKUpu6m5jDOqfeuwtk1tQYxVvVQ= Received: from BYAPR11MB2901.namprd11.prod.outlook.com (2603:10b6:a03:91::23) by BYAPR11MB3349.namprd11.prod.outlook.com (2603:10b6:a03:1c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.18; Tue, 20 Apr 2021 01:59:49 +0000 Received: from BYAPR11MB2901.namprd11.prod.outlook.com ([fe80::f06a:af2a:e054:32c8]) by BYAPR11MB2901.namprd11.prod.outlook.com ([fe80::f06a:af2a:e054:32c8%4]) with mapi id 15.20.4042.024; Tue, 20 Apr 2021 01:59:49 +0000 From: "Xu, Rosen" To: "Yigit, Ferruh" , "Zhang, Tianfei" , "Zhang, Qi Z" , "Huang, Wei" , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [PATCH v2 1/1] raw/ifpga/base: check size before assigning Thread-Index: AQHXLFVAO8NFapWMaE2tdb0XrflsWqq7jsuAgADxPoCAABthgIAADQ4AgAAQeMA= Date: Tue, 20 Apr 2021 01:59:49 +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: 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: [192.55.46.54] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: def0d7f8-7f8f-415e-709c-08d9039ffb07 x-ms-traffictypediagnostic: BYAPR11MB3349: 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:4714; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: RoE2rRl34K4g+AaOXcwQv3nmezKJVN7jO6PbfWB72GvljPJGc6dyHJ1g1KWMS0RoBJXdz7Lp372AtLqQPmw+GsYQV4Fce3ieFpVV7w7KHkrwxbAA5phCf3qacb81ZUpYIQ5SNP6RLTVAVEq4YRXy8WgDhq1hIFpVIv3OKmE6pSbcKHdk69qiHHhB5MBuTZ8Cb8uvE+1AtDgMRj8L2iPDxpJz64C8wqyrDqTSB/LXasFIgMuByH0HgYpVNsub7CLYdnH0LX3FrbrZ9HAwd3L/fz3nnYbNI83jqXw6Kw5GMh/28X/7QY9u+WTi2RTyR0EdithLAn83GHTC0iqorhVj9CfB7efdcErPorRZuyQdOkYqq1IGyMDORVt+VssiI+oha7iXB/Zj7arnmUnn23vADHTJflq5s1GxZMn+hpThSE5dWEHp2qem+SJqSnb6CyWnTVQ3ztL7QKtmLz9UFWWb+ztJ5z7C5pb6nl+Q7Br7G9/HM4c8Mnrn9VhKw998zQuXJwxEWxE3tUfO0h6LUMBbKYH+fMTl6s0HWNhVwlLLYcGBqyO+NRKW4P6nX4M7pUXMTy13FcD4TvlCeMZmQu3CkCwRUTKL8yQR7P8DmD4tAWU= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB2901.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(39860400002)(376002)(136003)(396003)(366004)(26005)(86362001)(450100002)(8676002)(38100700002)(316002)(76116006)(9686003)(186003)(71200400001)(122000001)(110136005)(52536014)(8936002)(6506007)(33656002)(4326008)(478600001)(53546011)(83380400001)(55016002)(64756008)(2906002)(66556008)(66476007)(7696005)(5660300002)(66946007)(66446008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?utf-8?B?L3JCWUFJQkl2SW9rNHdPQ1ZWQlhMMEFoTWRJRWY5VDJrVkhXdlV3ejVSaG02?= =?utf-8?B?ZUZXQXhxbXMxRVpZb1RRVVE4Wkg1K0xJc1BCQ3F3SE1yeXpzWFByQ0YzWGlJ?= =?utf-8?B?MzdZTmFZeityejROQjgyTXY1S1B4UnFZUDRaTGY5ZkFFTmd3dGpWMVk5eURN?= =?utf-8?B?bXQ0dy8zbUlaa0pRMGlOWVRPdXZQZHhEUGh3SDNBUy8zRVUvNnJUNjdDTnFx?= =?utf-8?B?Nml3bEcyMXFZMGJGN0psMmk2NXYvRFg5dlo3RDZGY3FPNG0rNW5YbTUyZ3VG?= =?utf-8?B?NktQQWo5QVE0QTArRTE5UzhwU2F1UjZ2cEVRdGZ1MHJpemNIaVNucmhIL1po?= =?utf-8?B?eGtWWjBHQWh5TlZlRk80aHl6VFpTWUZQd1dWV3NFQzgvM2pCVGc0bDZtVUk3?= =?utf-8?B?ek5GRnRLd09KTU5iZmZPSGxFdnpQS2tmMnhKVFVKcitZbTdmTXN3bmNQTGZa?= =?utf-8?B?a1B0bE1TUTRGNnNRN1J3dlJ2SndPd0ZwbTlBMTR1dXFSYXFxa2FZd1k0bFF3?= =?utf-8?B?YTlJcXZabFVHL2xXaDhyUmNRUFJaZEdIeDBuL1FMaXZRSnFLdlpudG13Q0h5?= =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3TDlpbTVLWmdIWmZo?= =?utf-8?B?TERJdzdJdzBObTdHNkpQWGtDL0VMeDRhdjRlTG52ZlQ3K2w4TStTRVhQck5K?= =?utf-8?B?UVU3dGVHci9qS2VuRi9GU05tSld3QjFXS0drTXF4Yk56QlhFT3JFSGJ1Zm4w?= =?utf-8?B?alVNYWNVYmhxRWRueXZFMXJaOXN2aVAwcWxBWmd5bWl4dlB6Smp3NUdTU2hC?= =?utf-8?B?cEVEZm5KSzFvZUQ2emZ1K3k2TFJYbmZNakV2RW9SMmF3TGkrZW10Y2tabk9X?= =?utf-8?Q?3erJWjlyPWhsATH/c8=3D?= 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: BYAPR11MB2901.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: def0d7f8-7f8f-415e-709c-08d9039ffb07 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Apr 2021 01:59:49.4218 (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: iyhnK93k8KxdXP9YjK4bFVwN4ShUytHPXn8GJ1Kv+0RYz2FS5UOeGGDqAZj1bDrYuSS2Hve4ZnwZf4X3dVf4kQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3349 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" VGhhbmtzIGFsbC4NCg0KLS0tLS1PcmlnaW5hbCBNZXNz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