Daniel P. Berrangé
1259f27ec2
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>
2019-05-02 08:29:33 +02:00
..
2019-03-22 16:18:07 +00:00
2019-04-02 11:49:14 -04:00
2019-03-07 21:45:53 +01:00
2019-03-28 09:18:53 +00:00
2019-04-29 17:57:21 +01:00
2019-04-01 08:53:40 +02:00
2019-04-04 18:00:07 +01:00
2019-03-07 21:45:53 +01:00
2019-03-28 09:18:53 +00:00
2019-04-25 14:16:41 -03:00
2019-03-07 21:45:53 +01:00
2019-03-07 21:46:19 +01:00
2019-04-29 17:57:21 +01:00
2019-04-29 17:36:03 +01:00
2019-03-25 17:01:10 +00:00
2019-03-28 09:18:53 +00:00
2019-03-07 21:45:53 +01:00
2019-03-22 16:18:07 +00:00
2019-04-26 16:38:04 +01:00
2019-03-22 16:18:07 +00:00
2019-04-29 17:57:21 +01:00
2019-04-29 17:36:02 +01:00
2019-03-07 21:45:53 +01:00
2019-03-07 21:45:53 +01:00
2019-03-28 09:18:53 +00:00
2019-03-11 22:53:44 +01:00
2019-03-07 21:46:19 +01:00
2019-03-22 16:18:07 +00:00
2019-03-11 22:53:44 +01:00
2019-04-17 21:21:49 +02:00
2019-04-29 17:57:21 +01:00
2019-03-07 21:46:19 +01:00
2019-04-29 17:57:21 +01:00
2019-04-29 16:09:51 +01:00
2019-03-22 16:18:07 +00:00
2019-03-07 21:46:19 +01:00
2019-04-26 11:37:57 +10:00
2019-03-18 09:39:57 +01:00
2019-03-28 09:18:53 +00:00
2019-03-07 21:45:53 +01:00
2019-04-27 21:34:46 +01:00
2019-03-28 09:18:53 +00:00
2019-04-04 16:36:21 -07:00
2019-04-26 14:30:18 +01:00
2019-03-22 16:18:07 +00:00
2019-03-22 16:18:07 +00:00
2019-03-20 11:44:13 +01:00
2019-03-07 21:45:53 +01:00
2019-03-22 16:18:07 +00:00
2019-03-28 09:18:53 +00:00
2019-04-29 17:35:57 +01:00
2019-04-17 21:21:49 +02:00
2019-03-22 16:18:07 +00:00
2019-03-08 16:31:34 +00:00
2019-03-07 21:46:19 +01:00
2019-05-02 08:29:33 +02:00
2019-04-27 21:34:46 +01:00
2019-03-22 16:18:07 +00:00
2019-03-22 16:18:07 +00:00
2019-03-22 16:18:07 +00:00
2019-03-11 22:53:44 +01:00
2019-03-18 09:39:57 +01:00
2019-03-07 21:45:53 +01:00