]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
Improve block range checks
authorKevin Wolf <kwolf@redhat.com>
Fri, 8 May 2009 12:47:24 +0000 (14:47 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 8 May 2009 21:04:20 +0000 (16:04 -0500)
commit9fd0e57dc9d5601d5d62366639e593b9bd1d0b24
tree9b8897d9ec516a25cfc8215194dc878c9b9c13e2
parent2fd0f9328634d0b156add2b4d7c10f7c193d2e20
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>
block.c