diff options
| author | Paolo Bonzini | 2012-04-12 14:01:04 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2012-05-10 10:32:11 +0200 |
| commit | 71df14fcbe5035d0728f30463414301eb62ad865 (patch) | |
| tree | 173287c2a889188b8fb106e24212ea93c9e28b7b /tests | |
| parent | block: open backing file as read-only when probing for size (diff) | |
| download | qemu-71df14fcbe5035d0728f30463414301eb62ad865.tar.gz qemu-71df14fcbe5035d0728f30463414301eb62ad865.tar.xz qemu-71df14fcbe5035d0728f30463414301eb62ad865.zip | |
block: fix allocation size for dirty bitmap
Also reuse elsewhere the new constant for sizeof(unsigned long) * 8.
The dirty bitmap is allocated in bits but declared as unsigned long.
Thus, its memory block is accessed beyond its end unless the image
is a multiple of 64 chunks (i.e. a multiple of 64 MB).
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions
