Received: from eggs.gnu.org ([2001:4830:134:3::10]:38780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWnr2-0006lH-HE for qemu-devel@nongnu.org; Sun, 06 Apr 2014 10:15:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWnqw-0004aj-DX for qemu-devel@nongnu.org; Sun, 06 Apr 2014 10:15:24 -0400 Message-ID: <53416175.9080103@msgid.tls.msk.ru> Date: Sun, 06 Apr 2014 18:15:17 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <1396019577-2013-1-git-send-email-peter.maydell@linaro.org> <1396019577-2013-4-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1396019577-2013-4-git-send-email-peter.maydell@linaro.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH 3/3] xbzrle.c: Avoid undefined behaviour with signed arithmetic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org, patches@linaro.org 28.03.2014 19:12, Peter Maydell wrote: > Use unsigned types for doing bitwise arithmetic in the xzbrle > calculations, to avoid undefined behaviour: > > xbzrle.c:99:49: runtime error: left shift of 72340172838076673 > by 7 places cannot be represented in type 'long' Aplied to -trivial, thanks! /mjt