[Libguestfs] [PATCH v2 0/4] Avoid 0-bytes malloc in bindings

Richard W.M. Jones rjones at redhat.com
Fri Mar 3 21:57:53 UTC 2017


On Fri, Mar 03, 2017 at 06:13:15PM +0100, Pino Toscano wrote:
> Hi,
> 
> some of the bindings may try to malloc with 0 bytes as size when closing
> an handle, because there were no event handlers registered.  Since this
> can have different behaviours in POSIX, avoid that situation altogether
> by just skipping allocating anything when there were no event handlers.

Looks good, ACK series.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v




More information about the Libguestfs mailing list