summaryrefslogtreecommitdiffstats
path: root/include/hw/virtio
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2015-06-23 09:53:05 +0800
committerMichael S. Tsirkin <mst@redhat.com>2015-06-23 08:14:13 +0200
commit1fa795a853255fcc93e5d3e2a92d161a2ed96eb8 (patch)
tree02cec5b7bd4a9e5c88bb2522a7d4516c0c95a935 /include/hw/virtio
parent3750dabc69d76f0938cc726a64a70e4ae2fe21df (diff)
downloadhqemu-1fa795a853255fcc93e5d3e2a92d161a2ed96eb8.zip
hqemu-1fa795a853255fcc93e5d3e2a92d161a2ed96eb8.tar.gz
qdev: fix OVERFLOW_BEFORE_WIDEN
Potentially overflowing expression "1 << prop->bitnr" with type "int" (32 bits, signed) is evaluated using 32-bit arithmetic, and then used in a context that expects an expression of type "uint64_t" (64 bits, unsigned). Cc: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/virtio')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud