bochs: Use unsigned variables for offsets and sizes (CVE-2014-0147)
commit246f65838d19db6db55bfb41117c35645a2c4789
authorKevin Wolf <kwolf@redhat.com>
Wed, 26 Mar 2014 12:05:32 +0000 (26 13:05 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 1 Apr 2014 11:59:47 +0000 (1 13:59 +0200)
tree88a74c30610b6977ca4a23158e824e0174f4780f
parent3dd8a6763bcc50dfc3de8da9279b741c0dea9fb1
bochs: Use unsigned variables for offsets and sizes (CVE-2014-0147)

Gets us rid of integer overflows resulting in negative sizes which
aren't correctly checked.

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
tests/qemu-iotests/078
tests/qemu-iotests/078.out