From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] app/test: fix memory_autotest integer overflow/wraparound Date: Mon, 07 Dec 2015 03:46:11 +0100 Message-ID: <6720797.vrucqOHZ9f@xps13> References: <1447774756-107404-1-git-send-email-sergio.gonzalez.monroy@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: "Gonzalez Monroy, Sergio" Return-path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 7DA76942E for ; Mon, 7 Dec 2015 03:47:23 +0100 (CET) Received: by wmww144 with SMTP id w144so132508781wmw.0 for ; Sun, 06 Dec 2015 18:47:23 -0800 (PST) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > memory_autotest loops infinitely when at least one the memsegs > > is bigger than 4GB. > > > > The issue is the result of an integer overflow/wraparound of > > the offset variable. > > > > Fix it by using the correct type (size_t). > > > > Signed-off-by: Sergio Gonzalez Monroy > > > > Acked-by: Pablo de Lara Applied, thanks