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

Re: [Xen-devel] [PATCH 21/29] tools/libxl: Allow adding larger amounts of prefixdata to datacopier



On 09/11/2014 01:01 PM, Ian Campbell wrote:
On Wed, 2014-09-10 at 18:10 +0100, Andrew Cooper wrote:
From: Ross Lagerwall <ross.lagerwall@xxxxxxxxxx>

Previously, adding more than 1000 bytes of data would cause a segfault.

Segfault is a symptom, not a cause, why does it happen?

struct libxl__datacopier_buf contains a fixed size 1000 byte statically allocated buffer so adding > 1000 bytes of data would cause it to overrun the buffer and overwrite other memory.

Regards
--
Ross Lagerwall

_______________________________________________
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®.