summaryrefslogtreecommitdiff
path: root/tests/libqtest.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-04-12 14:01:04 +0200
committerKevin Wolf <kwolf@redhat.com>2012-05-10 10:32:11 +0200
commit71df14fcbe5035d0728f30463414301eb62ad865 (patch)
tree173287c2a889188b8fb106e24212ea93c9e28b7b /tests/libqtest.c
parent63090dac3a7c5fe02b4285cf2e5fb7017d2c7b0e (diff)
downloadqemu-71df14fcbe5035d0728f30463414301eb62ad865.tar.gz
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/libqtest.c')
0 files changed, 0 insertions, 0 deletions