[libvirt] [PATCH] bridge: Fix potential segfault when preparing dnsmasq arguments

Eric Blake eblake at redhat.com
Wed Aug 11 17:36:49 UTC 2010


On 08/11/2010 10:44 AM, Jiri Denemark wrote:
> We add --dhcp-lease-max=xxx argument when network->def->nranges > 0 but
> we only allocate space for in the opposite case :-) I guess we are lucky
> enough to miscount somewhere else so that we actually allocate more
> space than we need since no-one has hit this bug so far.

ACK.  Boy will it be nice to move to the newer exec wrappers that
eliminates the need for each client to malloc the right size argv
themselves.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100811/20cd4ca6/attachment-0001.sig>


More information about the libvir-list mailing list