[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Re: [PATCH]: fix crash in various tools by permitting xs_*() with NULL path


  • To: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>
  • From: Paolo Bonzini <pbonzini@xxxxxxxxxx>
  • Date: Mon, 26 Jul 2010 11:45:28 +0200
  • Cc: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
  • Delivery-date: Mon, 26 Jul 2010 02:46:26 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:newsgroups:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; b=CY/n8jxJTe028duwrse0crKp+6fCaUdjRZOh4stU0Ywa/1RpSfgLLfrT2m4lWu5ZGy a8Tq52O5zopIWj3mRTCPa2rqEXvGsba5JHwFi/fg9g2JBn49fVN4y6Xy0TpEtbmGBQoB C81HzkSGRv2tS6HyBvSSKJFPqjjzv/A/tZZ6I=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

On 07/20/2010 07:02 PM, Gianni Tedesco wrote:
On the contrary open(NULL, O_RDONLY) will... The difference is FILE * is
a struct wheras the change I am proposing in this case is to treat NULL
as the empty string in the case of paths.

Returning EFAULT is one possible outcome, but a SIGSEGV or SIGBUS is also valid according to POSIX.

Paolo

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.