usb-mtp: fix sending files larger than 4gb
commit8a5865f331028e66b4ed233129d7a914c2d5bfc7
authorIsaac Lozano <109lozanoi@gmail.com>
Sat, 6 Aug 2016 10:06:01 +0000 (6 03:06 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 14 Sep 2016 09:17:06 +0000 (14 11:17 +0200)
tree86d156bbf9942457f33b9784df7bfc8232bc5ee0
parentb53dd4495ced2432a0b652ea895e651d07336f7e
usb-mtp: fix sending files larger than 4gb

MTP requires that if a file is larger than 4gb or if sending data larger
than 4gb, that the length field be set to 0xFFFFFFFF.

Also widened a couple variables to prevent overflow errors.

Signed-off-by: Isaac Lozano <109lozanoi@gmail.com>
Message-id: 01ad8ec7775f58575801ac3f13716f553a16815e.1470477265.git.109lozanoi@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/dev-mtp.c