[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] xc_inflate_buffer fix
On 15 Mar 2006, at 17:56, David Lively wrote: I notice some of my initrds are failing to gunzip: ERROR: inflate failed, sts -5 These same initrds work fine with Ben Thomas' original patch introducing xc_{linux,hvm}_build_mem. The checked-in version changed some declarations from unsigned char * to char *, breaking the output length computation in xc_inflate_buffer. This patch assumes you want to keep using the signed char * for the interface, so it simply inserts a few casts to unsigned. Tested lightly, but the bug is pretty obvious once you notice the signedness change ... Yep, my bad. Thanks. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |