libvirt_proxy: avoid potential buffer overflow
authorJim Meyering <meyering@redhat.com>
Wed, 28 Jan 2009 14:08:33 +0000 (14:08 +0000)
committerJim Meyering <meyering@redhat.com>
Wed, 28 Jan 2009 14:08:33 +0000 (14:08 +0000)
commitbe33b189a5e579509b5025d72b7f283401ef9dc1
tree8a825b3e52957ca893dab3bf3b5683894cf13d2a
parenteb0849f37040a0dd0c0cc928ffb56b1eeaa1798e
libvirt_proxy: avoid potential buffer overflow

* proxy/libvirt_proxy.c (proxyReadClientSocket): Ensure that
we've read an entire virProxyPacket before dereferencing "req".
Analysis and patch by "Rasputin" <rasputin@email.ru>.  Details in
<http://thread.gmane.org/gmane.comp.emulators.libvirt/11459>.
ChangeLog
proxy/libvirt_proxy.c