From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=pfP2KR8dxsFP3XF//tnCCK45U258SR7ACompaKF3Orc=; b=ThJm1r9/8fFodO93mDKB1etf67IKwq5TlGWWPy26Bg+FwZBUEsHDjmXEPrH3TFpWlc nd+gpbMihAaxjZGQwGe/xpx6mrDH8Vz4/HMmkBuq7FvYQJyZqrPmbXrJVokcso5Z739l Ihl0IzBuTCtrm89Ige5WAinmFs2yr3IxvnNeuZj20piQJxaG1yaoAXIIVSFW5kQ8gUWg YyKhC2AT8u4AQn4ZKzkDY7aMVWOovXJj8P2F9ARc4kQwvbMZ19tN43fsdP0sofG07FDw vorKBoZztEy6mzNAFMo5FEQ0uX/EXsWIm9i3Y3brMHdGGibDmLWQLgqHRjz/S4Za/Qba g9rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=pfP2KR8dxsFP3XF//tnCCK45U258SR7ACompaKF3Orc=; b=OFD5GV3c4Z3HY+WIXbqzok2WN7SIkgq143AtXKE5mLSXqanJkot3iRMs2NhPIO9e9Q 73yEFsXJURbn+XjlYPW8TOeMFwgi5OOLwRhqXlBzvrGtOsDU5aOSSvLBVwHvrTDNr00o RvafzDTVW9cojq3BVY5YZ59UN26up1Fxby9rOfCxWk0la72AVVFu2u8QD0Sdilpx47QY BbCzhp5RSoQTWFlruou949GK/kKbsLDvNyxh+IMhMOFHvZPqA/YySaFshk0LO+Fexd6L H5MpqKYPxNaWpPrrkaghjwDyiKw/e9aiH6Kxp1C7pNh3JFE+Vp+rlgk2fXHrcRMxa0y2 ShnQ== X-Gm-Message-State: ALoCoQkVX1ga8P/92ImtncS2BgC8Thcro8bHjnr9Lr5yx85ZqBzUEaCKqRPDawQU4pxzHgI5GwPy X-Received: by 10.194.242.195 with SMTP id ws3mr14664105wjc.131.1449456442957; Sun, 06 Dec 2015 18:47:22 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id n7sm14316960wmf.21.2015.12.06.18.47.22 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 06 Dec 2015 18:47:22 -0800 (PST) From: Thomas Monjalon To: "Gonzalez Monroy, Sergio" Date: Mon, 07 Dec 2015 03:46:11 +0100 Message-ID: <6720797.vrucqOHZ9f@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: <1447774756-107404-1-git-send-email-sergio.gonzalez.monroy@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org 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: Mon, 07 Dec 2015 02:47:23 -0000 > > 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