From: Ian Jackson Subject: xen-mfndump xch bug (was Re: New Defects reported by Coverity Scan for XenProject) Date: Thu, 13 Mar 2014 17:05:41 +0000 Message-ID: <21281.58725.678755.849173@mariner.uk.xensource.com> References: <532047fec9998_3c9c450684431a@209.249.196.67.mail> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WO94j-0007Xd-QE for xen-devel@lists.xenproject.org; Thu, 13 Mar 2014 17:05:46 +0000 In-Reply-To: <532047fec9998_3c9c450684431a@209.249.196.67.mail> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org, Dario Faggioli Cc: coverity@xenproject.org List-Id: xen-devel@lists.xenproject.org scan-admin@coverity.com writes ("New Defects reported by Coverity Scan for XenProject"): ___________________________ > *** CID 1191885: Dereference after null check (FORWARD_NULL) > /tools/misc/xen-mfndump.c: 401 in main() > 400 xch = xc_interface_open(0, 0, 0); > >>> CID 1191885: Dereference after null check (FORWARD_NULL) > >>> Comparing "xch" to null implies that "xch" might be null. > 401 if ( !xch ) > 402 { > 403 ERROR("Failed to open an xc handler"); This complaint is accurate. ERROR uses xch. (This is IMO not a security problem.) Furthermore, I was rather startled to discover that xen-mfndump.c #includes . Thanks, Ian.