Re: [XEN PATCH v2 2/3] libxl: Remove unnecessary buffer zeroing and zalloc()

2024-08-27 Thread Anthony PERARD
On Fri, Aug 23, 2024 at 06:05:04PM +0100, Javi Merino wrote: > When reading the console, xen overwrites the contents of the buffer, > so there is no need to zero the buffer before passing it to xen. > Instead, add a NULL at the end of the buffer. > > While we are at it, change the zalloc() of the

[XEN PATCH v2 2/3] libxl: Remove unnecessary buffer zeroing and zalloc()

2024-08-23 Thread Javi Merino
When reading the console, xen overwrites the contents of the buffer, so there is no need to zero the buffer before passing it to xen. Instead, add a NULL at the end of the buffer. While we are at it, change the zalloc() of the buffer back to malloc() as it was before bdf4131 (libxl: don't leak buf