]> git.ipfire.org Git - thirdparty/qemu.git/commit
bochs: Use unsigned variables for offsets and sizes (CVE-2014-0147)
authorKevin Wolf <kwolf@redhat.com>
Wed, 26 Mar 2014 12:05:32 +0000 (13:05 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 3 Jul 2014 21:18:11 +0000 (16:18 -0500)
commit0e748624bd2261e7589b40b31413d62dc841957a
treec461a3fdbc4b33b6ca54e1d6170a0b3fc8697124
parentbb8b2018154f300b2fce9dc01e97d59caf0e2ed7
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>
(cherry picked from commit 246f65838d19db6db55bfb41117c35645a2c4789)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/bochs.c
tests/qemu-iotests/078
tests/qemu-iotests/078.out