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

Re: [Xen-devel] [PATCH 11/28] libxl: ocaml: propagate the libxl return error code in exceptions


  • To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
  • From: Rob Hoes <Rob.Hoes@xxxxxxxxxx>
  • Date: Tue, 23 Apr 2013 14:28:50 +0100
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Cc: "xen-devel@xxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxx>
  • Delivery-date: Tue, 23 Apr 2013 13:31:50 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Thread-index: Ac42qFuEijGfbtorQaql9A+aBtPjyQJfhLVg
  • Thread-topic: [Xen-devel] [PATCH 11/28] libxl: ocaml: propagate the libxl return error code in exceptions

> > will first call "caml_copy_string" which performs an allocation before
> > setting the field to a valid value. Any function which performs an
> > allocation can trigger a GC which will segfault if it sees the random
> > data in field 1.
> 
> I think this answers my earlier query on another patch about the redundant
> looking store to Field ...

Indeed :)

Rob
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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