[Libvir] [PATCH] Don't access line[-1] for a zero-length "line" from fgets.
jim at meyering.net
Mon Jan 21 14:13:22 UTC 2008
Daniel Veillard <veillard at redhat.com> wrote:
> 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
Applied. BTW, I noticed I had not committed some ChangeLog file
entries last week (though the content _is_ in the cvs commit logs),
so I added those at the same time.
More information about the libvir-list