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:02:18 +0000 (16:02 -0500)
commit3f9d0e6a77d7c111fba2abbc091b4678feac5345
treec1e950cc917f6c9439a22846d6fc8aca083ae4fd
parentfebf274157defd104852e6737bbb013ca2533bd0
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