]> xenbits.xensource.com Git - qemu-xen-4.0-testing.git/commit
Improve block range checks
authorKevin Wolf <kwolf@redhat.com>
Fri, 8 May 2009 12:47:24 +0000 (14:47 +0200)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 7 Oct 2009 14:52:34 +0000 (15:52 +0100)
commit8c20718dab7f1612dcc40fe478642cbc1102aa9b
tree67a954e5c1545297796651202c3e242f81a54369
parentdddf85563a18db9ae83d59ad567f4d77d39da821
Improve block range checks

This patch makes the range checks for block requests more strict: It fixes a
potential integer overflow and checks for negative offsets. Also, it adds the
check for compressed writes.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit fbb7b4e0804d2168f24142eebf7552adde1968dc)
block.c