commit | 4aa585c21e32f5a2ed6582ee4dfcfdbfdde0571b | [log] [tgz] |
---|---|---|
author | Yue Hu <huyue2@coolpad.com> | Tue Dec 13 17:17:46 2022 +0800 |
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | Thu Dec 22 10:58:19 2022 +0800 |
tree | dd405aadbad10e6bad680bbe33adb5bb8cdb388c | |
parent | 990c7e38379547c4ffb98649913618eb76746844 [diff] |
erofs-utils: fix fragmentoff overflow for large packed inode The return value of ftell() is a long int, use ftello{64} instead. Also, need to return at once if it fails. Meanwhile, use lseek64 for large file position as well to avoid this error if we have it. Signed-off-by: Yue Hu <huyue2@coolpad.com> Link: https://lore.kernel.org/r/20221213091746.16683-1-zbestahu@gmail.com Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>