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

Re: [Libvir] [PATCH] Don't access line[-1] for a zero-length "line" from fgets.



On Mon, Jan 21, 2008 at 01:37:25PM +0100, Jim Meyering wrote:
> In reviewing the StorageAPI patches, I saw that some bogus input could
> cause a segfault.  There's similar code in libvirt.c, so this fixes both.
> Note that virsh.c does this, too, but it already has the required guard.

  Oops ! +1 

Daniel

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


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