v0.4.0
[v0.4.0] - 2023-02-07
This release fixes an overflow of the lookahead buffer. Users are advised to
upgrade from previous releases to avoid filesystem corruption.
Added
- Added
Path::from_str_with_nul
andpath!
to createPath
instances from
str
. - Added
Eq
andPartialEq
implementations forPath
.
Changed
- Made
Path::from_bytes_with_nul_unchecked
const
. - [breaking] Replaced
LOOKAHEADWORDS_SIZE
(measured in multiples of four
bytes) withLOOKAHEAD_SIZE
(measured in multiples of eight bytes) in
driver::Storage
so that all possible values are valid. (See the lookahead
size fix below for context.) - [breaking] Require
&mut self
indriver::Storage::read
for compatibility
withembedded_storage
.
Fixed
- Fixed the lookahead size reported to
littlefs2-sys
. Previously, the
reported size was too large by the factor of 8, potentially leading to a
buffer overflow causing filesystem corruption. Fixing this means that
Storage::LOOKAHEADWORD_SIZE
values that are not a multiple of 2 can now
lead to an error. Fixes #16. - Propagate errors in littlefs callbacks instead of panicking.