Re: [libvirt] [PATCH] Avoid crash in virBufferEscapeString

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 14, 2009 at 11:55:19PM -0400, Laine Stump wrote:
> If virBufferEscapeString is called on a buffer that has 0 bytes of
> space, a size of -1 will be passed to snprintf, resulting in a
> segmentation fault. This patch checks for 0 space, and grows the
> buffer if needed prior to determining size.
> 
> I discovered this when I accidentally made virBufferEscapeString the
> first function to add something to a newly minted buffer.

  Argh, right, I applied the patch,

   thanks !

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]