Skip to content
Commit 204c9971 authored by Peter Bigot's avatar Peter Bigot Committed by Ioannis Glaropoulos
Browse files

subsys/fs/littlefs: fix Coverity issues



Closes #18392 by asserting and returning an error if the block size is
not positive.

Closes #18458.  The diagnosis here was not relevant as an in-range EOS
is written before the buffer is used, but using the non-terminated
length is slightly more clear about intent and may avoid a read overrun
of the mount point.

Signed-off-by: default avatarPeter Bigot <peter.bigot@nordicsemi.no>
parent 24b67ef1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment