aboutsummaryrefslogtreecommitdiff
path: root/qemu-io.c
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2019-04-15 16:45:03 +0100
committerGerd Hoffmann <kraxel@redhat.com>2019-05-02 08:29:33 +0200
commit1259f27ec2113d34e54ee731aac5990d9606d9fa (patch)
treecf27e55f405061bd6d17a7b1ba8bb6e5adb8ac29 /qemu-io.c
parent3541cd48f32233dd0c0766a3f342e3fd64b04381 (diff)
downloadqemu-1259f27ec2113d34e54ee731aac5990d9606d9fa.zip
qemu-1259f27ec2113d34e54ee731aac5990d9606d9fa.tar.gz
qemu-1259f27ec2113d34e54ee731aac5990d9606d9fa.tar.bz2
usb-mtp: fix alignment of access of ObjectInfo filename field
The ObjectInfo struct's "filename" field is following a uint8_t field in a packed struct and thus has bad alignment for a 16-bit field. Switch the field to to uint8_t and use the helper function for accessing unaligned 16-bit data. Note that although the MTP spec specifies big endian, when transported over the USB protocol, data is little endian. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-id: 20190415154503.6758-4-berrange@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'qemu-io.c')
0 files changed, 0 insertions, 0 deletions