qemu-e2k/hw/bt
Paolo Bonzini e0df8f18f7 bt: avoid unintended sign extension
In the case of a 4-byte length, shifting a value by 24 may cause
an unintended sign extension when converting from int to size_t.
Use a uint32_t variable instead.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2015-12-04 09:39:55 +03:00
..
core.c
hci-csr.c
hci.c
hid.c
l2cap.c
Makefile.objs
sdp.c bt: avoid unintended sign extension 2015-12-04 09:39:55 +03:00