From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbZKS-0005fZ-G6 for qemu-devel@nongnu.org; Fri, 16 Dec 2011 10:04:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RbZKK-0007A9-6K for qemu-devel@nongnu.org; Fri, 16 Dec 2011 10:04:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbZKJ-0007A1-W2 for qemu-devel@nongnu.org; Fri, 16 Dec 2011 10:04:00 -0500 Message-ID: <4EEB5DD4.50302@redhat.com> Date: Fri, 16 Dec 2011 16:03:48 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1324036918-2405-1-git-send-email-pbonzini@redhat.com> <1324036918-2405-2-git-send-email-pbonzini@redhat.com> <4EEB4DE2.2060805@codemonkey.ws> <4EEB4F0C.7050702@redhat.com> <4EEB5152.2010405@codemonkey.ws> <4EEB543C.5030104@redhat.com> <4EEB59CE.809@codemonkey.ws> <4EEB5A6D.4080705@redhat.com> <4EEB5C11.5040907@codemonkey.ws> In-Reply-To: <4EEB5C11.5040907@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/8] qapi: fix NULL pointer dereference List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: kwolf@redhat.com, qemu-devel@nongnu.org On 12/16/2011 03:56 PM, Anthony Liguori wrote: > I'd really prefer to stick to non-nullable strings as there is no > obvious way to specify NULL in command line options. We can leave it as the default. A property with a non-null default is implicitly not nullable, which actually makes some sense. We can model this in get_string/set_string too. > What are the uses of null in qdev string properties? I know you can't > set a string to null since parse() doesn't have a null syntax. So we're > really just talking about an uninitialized state, right? Yes. No ROM BAR is an example of a NULL string property. Paolo