From: Ian Jackson Subject: Re: [PATCH] tools: libxl: NULL terminate partially constructed hex string Date: Tue, 16 Feb 2016 17:39:11 +0000 Message-ID: <22211.24255.707965.371028@mariner.uk.xensource.com> References: <1455621500-12918-1-git-send-email-ian.campbell@citrix.com> <20160216123431.GL10489@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20160216123431.GL10489@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: Wei Liu Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Wei Liu writes ("Re: [PATCH] tools: libxl: NULL terminate partially constructed hex string"): > On Tue, Feb 16, 2016 at 11:18:20AM +0000, Ian Campbell wrote: > > Coverity (correctly) complains that the strncpy(p, "0x", 2) will not > > null terminate p. > > Signed-off-by: Ian Campbell > > Acked-by: Wei Liu Committed-by: Ian Jackson