]> xenbits.xensource.com Git - libvirt.git/commit
Don't access line[-1] for a zero-length "line" from fgets.
authorJim Meyering <meyering@redhat.com>
Mon, 21 Jan 2008 14:09:51 +0000 (14:09 +0000)
committerJim Meyering <meyering@redhat.com>
Mon, 21 Jan 2008 14:09:51 +0000 (14:09 +0000)
commita430f22be479fe3e0e750b83b1e3aade507278a9
tree35ba12a8a92cfabadf64f47c9de91576d3fca7d6
parent5912e7c23315f909bafb79b2ad966dc820d34b00
Don't access line[-1] for a zero-length "line" from fgets.

A NUL byte at beginning of input, or just after a newline
would provoke an invalid buf[-1] access (possible segfault).
* src/libvirt.c (virConnectAuthCallbackDefault):
ChangeLog
src/libvirt.c