commit | 8b89ccf010dacc90b4510088f667ce1e19e68834 | [log] [tgz] |
---|---|---|
author | faqiang.zhu <faqiang.zhu@nxp.com> | Thu Apr 11 19:04:53 2019 +0800 |
committer | faqiang.zhu <faqiang.zhu@nxp.com> | Wed Apr 24 18:10:46 2019 +0800 |
tree | 2e843dd14924916fbb35f0b38203920dc26cf0fc | |
parent | 28d257e48bb6584b3cc7d46a790b92acd23c2880 [diff] |
fix copy large file issue over MTP on 32bit device change offset variable type from off_t to loff_t, then it won't overflow when the offset value is larger than 2GB. change the pwrite and pread function to be pwrite64 and pread64 so the offset parameter won't overflow. Change-Id: I45947479a59a4240fd708787384bcadee09d8947 Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>