From: Gianni Tedesco Subject: Re: [PATCH]: xl, fix segfault when detaching non-existant disk Date: Tue, 27 Jul 2010 17:10:55 +0100 Message-ID: <1280247055.1723.2150.camel@qabil.uk.xensource.com> References: <1280165088.1723.2062.camel@qabil.uk.xensource.com> <19534.63853.928166.752285@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <19534.63853.928166.752285@mariner.uk.xensource.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: Ian Jackson Cc: Xen Devel , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Tue, 2010-07-27 at 16:21 +0100, Ian Jackson wrote: > Gianni Tedesco (3P) writes ("[PATCH]: xl, fix segfault when detaching non-existant disk"): > > val = libxl_xs_read(ctx, XBT_NULL, libxl_sprintf(ctx, "%s/backend-id", diskpath)); > > + if (!val) > > + return ERROR_FAIL; > > This is fine as far as it goes, and I'll apply it, but would you like > to do the same for all the other unchecked libxl_xs_read calls ? :-) It's a gigantic piece of work, along with sorting out various memory leaks. It is on my TODO list :) Gianni