View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004941 | UBoot | U-Boot | public | 2021-10-05 13:29 | 2021-10-05 15:09 |
Reporter | derksen | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Product Version | fsimx8mm-B2021.06 | ||||
Target Version | fsimx8mn-Y2021.09 | Fixed in Version | fsimx8mn-Y2021.09 | ||
Summary | 0004941: In fat_fus.c, handle files > 2GB better | ||||
Description | In fat_fus.c, handle files > 2GB better In fat_size(), function file_fat_read() is called. This returns either the size of the file or a negative error code. The previous comparison with < 0 has problems if the file size exceeds 2GB. Then the size has bit 31 set and is interpreted as a negative value and hence as an error value. Use IS_ERR_VALUE() instead, then only a few very large files with nearly 4GB will have problems. Remark: The function file_fat_read() is only called in very few places. Maybe we can remove it completely and use file_fat_read_at() instead which has a separate pointer for the size and does not mix it up with the return value. | ||||
Forum Link | |||||