diff options
author | Paolo Bonzini | 2016-10-10 21:58:58 +0200 |
---|---|---|
committer | Paolo Bonzini | 2016-10-23 16:10:59 +0200 |
commit | e948f663e9334249c394b88926addcdd3f9e35cd (patch) | |
tree | d187b8b01f4bea45a752862ef1301d920b6bf963 /bsd-user/qemu.h | |
parent | kvm-all: don't use stale dbg_data->cpu (diff) | |
download | qemu-e948f663e9334249c394b88926addcdd3f9e35cd.tar.gz qemu-e948f663e9334249c394b88926addcdd3f9e35cd.tar.xz qemu-e948f663e9334249c394b88926addcdd3f9e35cd.zip |
rbd: shift byte count as a 64-bit value
Otherwise, reads of more than 2GB fail. Until commit
7bbca9e290a9c7c217b5a24fc6094e91e54bd05d, reads of 2^41
bytes succeeded at least theoretically.
In fact, pdiscard ought to receive a 64-bit integer as the
count for the same reason.
Reported by Coverity.
Fixes: 7bbca9e290a9c7c217b5a24fc6094e91e54bd05d
Cc: qemu-stable@nongnu.org
Cc: kwolf@redhat.com
Cc: eblake@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'bsd-user/qemu.h')
0 files changed, 0 insertions, 0 deletions