commit | 6c016415c6bd986413088a330595786d7d3d358c | [log] [tgz] |
---|---|---|
author | Jerry Zhang <zhangjerry@google.com> | Thu Jun 15 12:42:13 2017 -0700 |
committer | Jerry Zhang <zhangjerry@google.com> | Thu Jun 15 14:40:03 2017 -0700 |
tree | 5451c867ef898d36760d56a1a8f2d48822ceea5a | |
parent | c58b24651a56989fdf39b42202c77e72749e8bab [diff] |
Fix 4G file transfer on 32 bit. ptp_usb_senddata will store file size in a uint64_t, but ptp_write_func casts this down to an unsigned long, which is 32 bits on i386. To fix, break up transfers into pieces less than ULONG_MAX rounded down by packet size.