mirror of https://github.com/ARMmbed/mbed-os.git
This bug was a result of an annoying corner case around intermingling signed and unsigned offsets. The boundary check that prevents seeking a file to a position before the file was preventing valid seeks with positive offsets. This corner case is a bit more complicated than it looks because the offset is signed, while the size of the file is unsigned. Simply casting both to signed or unsigned offsets won't handle large files. |
||
---|---|---|
.. | ||
bd | ||
fat | ||
littlefs | ||
Dir.cpp | ||
Dir.h | ||
File.cpp | ||
File.h | ||
FileSystem.cpp | ||
FileSystem.h | ||
mbed_filesystem.h | ||
mbed_lib.json |