From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: Re: [PATCH] libxl: fix unsafe subtraction in libxl_set_memory_target Date: Tue, 1 Feb 2011 19:25:26 +0000 Message-ID: <19784.24102.34504.14162@mariner.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Stefano Stabellini writes ("[Xen-devel] [PATCH] libxl: fix unsafe subtraction in libxl_set_memory_target"): > The current libxl_set_memory_target function subtracts a negative amount > from an uint32_t variable without checking if the operation wraps > around. > > This patch fixes this bug (that I previously believed to be an > hypervisor issue): > http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1729 Applied, thanks. Ian.