From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Hanquez Subject: Re: [PATCHv2 3/4] libxl: add version_info function Date: Wed, 21 Apr 2010 16:01:58 +0100 Message-ID: <4BCF1366.1050201@eu.citrix.com> References: <1271859446-25892-1-git-send-email-andre.przywara@amd.com> <1271859446-25892-4-git-send-email-andre.przywara@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1271859446-25892-4-git-send-email-andre.przywara@amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Andre Przywara Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 21/04/10 15:17, Andre Przywara wrote: > + > + xc_version(ctx->xch, XENVER_commandline,&u.xen_commandline); > + info->commandline = libxl_sprintf(ctx, u.xen_commandline); oh actually just missed that; it's important to not include a variable as the format string: if for some reason any of this field end up containing a %something, it will lead usually to segfault. can you please replace all: libxl_sprintf(ctx, ..); by: libxl_sprintf(ctx, "%s", ...); Thanks, -- Vincent