From: Ian Campbell Subject: Re: [PATCH] xenstat: Fix buffer over-run with new_domains being negative. Date: Fri, 13 Sep 2013 13:32:42 +0100 Message-ID: <1379075562.19256.68.camel@kazak.uk.xensource.com> References: <1378825710-9563-1-git-send-email-konrad.wilk@oracle.com> <522F4481.9080209@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VKSYJ-0001H2-F2 for xen-devel@lists.xenproject.org; Fri, 13 Sep 2013 12:32:47 +0000 In-Reply-To: <522F4481.9080209@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Konrad Rzeszutek Wilk , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Tue, 2013-09-10 at 17:10 +0100, Andrew Cooper wrote: > On 10/09/13 16:08, Konrad Rzeszutek Wilk wrote: > > Coverity identified this as: > > CID 1055740 Out-of-bounds read - "In xenstat_get_node: > > Out-of-bounds read from a buffer (CWE-125)" > > > > And sure enough, if xc_domain_getinfolist returns us -1, we will > > try to use it later on in the for (i = 0; i < new_domains; ..) > > loop. > > > > CC: ian.campbell@citrix.com > > Signed-off-by: Konrad Rzeszutek Wilk > > Reviewed-by: Andrew Cooper Applied.