]> xenbits.xensource.com Git - libvirt.git/commit
uml: avoid crash on partial read
authorEric Blake <eblake@redhat.com>
Wed, 3 Mar 2010 00:16:05 +0000 (17:16 -0700)
committerJim Meyering <meyering@redhat.com>
Wed, 3 Mar 2010 09:17:31 +0000 (10:17 +0100)
commit4acbb29821391d73bccc2d5b049e8f1e1491308a
tree6cdcd11378e2a02bf2bf1ec28e5d074359c988e5
parent2103d87c8985b71ff94a79660af6b90945edbf28
uml: avoid crash on partial read

Coverity detected a potential dereference of uninitialized memory
if recvfrom got cut short.

* src/uml/uml_driver.c (umlMonitorCommand): Validate complete read
prior to dereferencing res.
src/uml/uml_driver.c