Re: [libvirt] [PATCH 03/19] util: buffer: Simplify escape buffer allocations

2019-10-24 Thread Ján Tomko
On Thu, Oct 24, 2019 at 03:56:21PM +0200, Peter Krempa wrote: Replace combinations of xalloc_oversized and VIR_ALLOC_N_QUIET by using g_malloc0_n which does the checking internally. This conversion is done with a semantic difference and slightly higher memory requirements as I've opted to alloca

[libvirt] [PATCH 03/19] util: buffer: Simplify escape buffer allocations

2019-10-24 Thread Peter Krempa
Replace combinations of xalloc_oversized and VIR_ALLOC_N_QUIET by using g_malloc0_n which does the checking internally. This conversion is done with a semantic difference and slightly higher memory requirements as I've opted to allocate one chunk more than necessary rather than trying to accomodat