On 2/13/19 7:04 AM, Andrea Bolognani wrote: > The memory allocated by VIR_REALLOC_N() is uninitialized, > which means it's not possible to figure out whether any > output was produced at all after the fact. > > Since we don't care about the previous contents of buffers, > if any, use VIR_FREE() followed by VIR_ALLOC_N() instead. > > Signed-off-by: Andrea Bolognani <[email protected]> > --- > src/util/vircommand.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > Reviewed-by: John Ferlan <[email protected]> John -- libvir-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/libvir-list
- [libvirt] [PATCH v2 0/3] qemu: Report better error on... Andrea Bolognani
- [libvirt] [PATCH v2 1/3] vircommand: Ensure buff... Andrea Bolognani
- Re: [libvirt] [PATCH v2 1/3] vircommand: Ens... John Ferlan
- Re: [libvirt] [PATCH v2 1/3] vircommand: Ens... Daniel P . Berrangé
- [libvirt] [PATCH v2 2/3] virfile: Report error i... Andrea Bolognani
- Re: [libvirt] [PATCH v2 2/3] virfile: Report... John Ferlan
- Re: [libvirt] [PATCH v2 2/3] virfile: Re... Andrea Bolognani
- Re: [libvirt] [PATCH v2 2/3] virfile... John Ferlan
- Re: [libvirt] [PATCH v2 2/3] virfile: Report... Daniel P . Berrangé
- Re: [libvirt] [PATCH v2 2/3] virfile: Re... Andrea Bolognani
- Re: [libvirt] [PATCH v2 2/3] virfile... Daniel P . Berrangé
- Re: [libvirt] [PATCH v2 2/3] vi... Andrea Bolognani
- [libvirt] [PATCH v2 3/3] iohelper: Don't include... Andrea Bolognani
