Received: from eggs.gnu.org ([2001:4830:134:3::10]:48186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2zM5-0006wW-NV for qemu-devel@nongnu.org; Sun, 29 Nov 2015 05:37:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a2zM0-0007mc-Nm for qemu-devel@nongnu.org; Sun, 29 Nov 2015 05:37:17 -0500 Message-ID: <565AD557.3080703@msgid.tls.msk.ru> Date: Sun, 29 Nov 2015 13:37:11 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <1448626105-29540-2-git-send-email-pbonzini@redhat.com> In-Reply-To: <1448626105-29540-2-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH for-2.5] bt: avoid unintended sign extension List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org 27.11.2015 15:08, Paolo Bonzini wrote: > In the case of a 4-byte length, shifting a value by 24 may cause > an unintended sign extension when converting from int to size_t. > Use a uint32_t variable instead. Applied to -trivial, thank you! /mjt