virtio-serial: Don't copy over guest buffer to host
commit471344db88cc3e7adf7664aa34d54ce0cacc3419
authorAmit Shah <amit.shah@redhat.com>
Fri, 10 Dec 2010 11:59:49 +0000 (10 17:29 +0530)
committerAmit Shah <amit.shah@redhat.com>
Thu, 20 Jan 2011 09:08:21 +0000 (20 14:38 +0530)
tree2ccb7824ae371a0e8055e19e269d92f06d781359
parent6bff86560d42a9c391cf1e502ebd764c293c4d02
virtio-serial: Don't copy over guest buffer to host

When the guest writes something to a host, we copied over the entire
buffer first into the host and then processed it.  Do away with that, it
could result in a malicious guest causing a DoS on the host.

Reported-by: Paul Brook <paul@codesourcery.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
hw/virtio-serial-bus.c