From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 9B26F8DB1 for ; Wed, 2 Dec 2015 12:49:48 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 02 Dec 2015 03:49:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,373,1444719600"; d="scan'208";a="832602210" Received: from irsmsx107.ger.corp.intel.com ([163.33.3.99]) by orsmga001.jf.intel.com with ESMTP; 02 Dec 2015 03:49:47 -0800 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.23]) by IRSMSX107.ger.corp.intel.com ([169.254.10.132]) with mapi id 14.03.0248.002; Wed, 2 Dec 2015 11:49:46 +0000 From: "De Lara Guarch, Pablo" To: "Gonzalez Monroy, Sergio" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] app/test: fix memory_autotest integer overflow/wraparound Thread-Index: AQHRIU45YaSEQ3XRyUGanfeRaPnkPp63rF1A Date: Wed, 2 Dec 2015 11:49:46 +0000 Message-ID: References: <1447774756-107404-1-git-send-email-sergio.gonzalez.monroy@intel.com> In-Reply-To: <1447774756-107404-1-git-send-email-sergio.gonzalez.monroy@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] app/test: fix memory_autotest integer overflow/wraparound 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: Wed, 02 Dec 2015 11:49:49 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Sergio Gonzalez > Monroy > Sent: Tuesday, November 17, 2015 3:39 PM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH] app/test: fix memory_autotest integer > overflow/wraparound >=20 > memory_autotest loops infinitely when at least one the memsegs > is bigger than 4GB. >=20 > The issue is the result of an integer overflow/wraparound of > the offset variable. >=20 > Fix it by using the correct type (size_t). >=20 > Signed-off-by: Sergio Gonzalez Monroy > Acked-by: Pablo de Lara