From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by dpdk.space (Postfix) with ESMTP id 98AE5A05D3
	for <public@inbox.dpdk.org>; Wed, 24 Apr 2019 14:41:40 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 79B8D1B207;
	Wed, 24 Apr 2019 14:41:39 +0200 (CEST)
Received: from mga05.intel.com (mga05.intel.com [192.55.52.43])
 by dpdk.org (Postfix) with ESMTP id 39DC11B122;
 Wed, 24 Apr 2019 14:41:37 +0200 (CEST)
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
Received: from orsmga003.jf.intel.com ([10.7.209.27])
 by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
 24 Apr 2019 05:41:35 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.60,389,1549958400"; d="scan'208";a="145304526"
Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59])
 by orsmga003.jf.intel.com with ESMTP; 24 Apr 2019 05:41:34 -0700
Received: from irsmsx108.ger.corp.intel.com ([169.254.11.82]) by
 IRSMSX151.ger.corp.intel.com ([169.254.4.174]) with mapi id 14.03.0415.000;
 Wed, 24 Apr 2019 13:41:34 +0100
From: "Iremonger, Bernard" <bernard.iremonger@intel.com>
To: "Bie, Tiwei" <tiwei.bie@intel.com>, "Lu, Wenzhuo" <wenzhuo.lu@intel.com>, 
 "Wu, Jingjing" <jingjing.wu@intel.com>, "dev@dpdk.org" <dev@dpdk.org>
CC: "stable@dpdk.org" <stable@dpdk.org>
Thread-Topic: [PATCH] app/testpmd: fix unintentional integer overflow
Thread-Index: AQHU+kWwMB1MbFL7PUSi7fakP92SKKZLQUlA
Date: Wed, 24 Apr 2019 12:41:33 +0000
Message-ID:
 <8CEF83825BEC744B83065625E567D7C260D8CC06@IRSMSX108.ger.corp.intel.com>
References: <20190424022931.32281-1-tiwei.bie@intel.com>
In-Reply-To: <20190424022931.32281-1-tiwei.bie@intel.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNDMzM2NjZTQtMDIzNy00OTU2LWEwZTctYjFmYzdmM2JlZDBjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiTXZEaXU2d0ZDUlA2QUZLRHVodGF3dGVQUWNudTdRY1lLS1Z6QkRlNUxYNFJ3TkJ6MDBzMkVQdkRkKzJNNVpZbSJ9
x-ctpclassification: CTP_NT
dlp-product: dlpe-windows
dlp-version: 11.0.600.7
dlp-reaction: no-action
x-originating-ip: [163.33.239.180]
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Subject: Re: [dpdk-dev] [PATCH] app/testpmd: fix unintentional integer
	overflow
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>
Message-ID: <20190424124133.ztwTiV8dVnvFxSCSb-ILDC2dkNI2rHxAqfo1eckG4DI@z>

> -----Original Message-----
> From: Bie, Tiwei
> Sent: Wednesday, April 24, 2019 3:30 AM
> To: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Wu, Jingjing
> <jingjing.wu@intel.com>; Iremonger, Bernard <bernard.iremonger@intel.com>=
;
> dev@dpdk.org
> Cc: stable@dpdk.org
> Subject: [PATCH] app/testpmd: fix unintentional integer overflow
>=20
> Fix the potential overflow in expression 1 << begin by using 1ULL.
>=20
> Coverity issue: 279437, 279445
> Fixes: c73a9071877a ("app/testpmd: add commands to test new offload API")
> Cc: stable@dpdk.org
>=20
> Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>

Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>