]> Git Repo - qemu.git/commit - tests/qemu-iotests/078
bochs: Fix catalog size check
authorKevin Wolf <[email protected]>
Wed, 9 Apr 2014 10:10:34 +0000 (12:10 +0200)
committerKevin Wolf <[email protected]>
Fri, 11 Apr 2014 11:59:49 +0000 (13:59 +0200)
commit715c3f60efa9801a777a71cd06eaf8efa7eaa2a8
tree49c048c88723c0ad327faf47feb15c14c85a85b2
parent28ec11bc882387e51c7450558af5a49b8be95a36
bochs: Fix catalog size check

The old check was off by a factor of 512 and didn't consider cases where
we don't get an exact division. This could lead to an out-of-bounds
array access in seek_to_sector().

Signed-off-by: Kevin Wolf <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
block/bochs.c
tests/qemu-iotests/078
tests/qemu-iotests/078.out
This page took 0.023655 seconds and 4 git commands to generate.