Re: avoid reading uninitialized memory in test program

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

 



On Thu, Oct 18, 2007 at 09:18:20AM -0400, Daniel Veillard wrote:
> On Wed, Oct 17, 2007 at 01:34:21PM +0200, Jim Meyering wrote:
> > valgrind complained about the printf in conftest.c.
> > Here's the fix:
> > 
> > 	* src/conf.c (__virConfWriteMem): Fix typos in comment.
> > 	* tests/conftest.c (main): Use fwrite, not printf, since the
> > 	result buffer is not NUL-terminated.
> 
>  Patch looks fine to me,

  commited to CVS, 

   thanks Jim !

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard@xxxxxxxxxx  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/

--
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]