bochs: Fix bitmap offset calculation
authorKevin Wolf <kwolf@redhat.com>
Wed, 26 Mar 2014 12:05:35 +0000 (13:05 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 1 Apr 2014 11:59:47 +0000 (13:59 +0200)
commita9ba36a45dfac645a810c31ce15ab393b69d820a
tree6632a9f8471ccb6161a34f07f25ca8ee4d3a4189
parent8e53abbc20d08ae3ec30c2054e1161314ad9501d
bochs: Fix bitmap offset calculation

32 bit truncation could let us access the wrong offset in the image.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/bochs.c