]> git.ipfire.org Git - thirdparty/libvirt.git/commit
uml: sanity check external data before using it
authorEric Blake <eblake@redhat.com>
Wed, 3 Mar 2010 16:31:02 +0000 (09:31 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 11 Jun 2010 16:33:09 +0000 (10:33 -0600)
commit582c75ec459169ebb465701dfea9c128c01bd1fe
tree8cf48b2eb6b82579e27135f476113b973d7f6a60
parentd0dabc2bf8493469cfba401ce6bf7c2900ce8d9a
uml: sanity check external data before using it

Otherwise, a malicious packet could cause a DoS via spurious
out-of-memory failure.

* src/uml/uml_driver.c (umlMonitorCommand): Validate that incoming
data is reliable before using it to allocate/dereference memory.
Don't report bogus errno on short read.
Reported by Jim Meyering.
src/uml/uml_driver.c