Skip to content
Commit a71a8dbf authored by Laczen JMS's avatar Laczen JMS Committed by Carles Cufí
Browse files

nvs: hardening against bad sector close



A badly written sector close ate that has correct crc8 could allow
jumps outside the assigned flash area. This behavior is fixed.

A possibility existed that a badly erased sector or a incomplete write
of a large item created a empty closed sector. This has been fixed by:
a. Erase verification.
b. Clearing such a sector at startup.

Fixes #34382

Signed-off-by: default avatarLaczen JMS <laczenjms@gmail.com>

Co-Authered-by: default avatarAndrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
parent af10c068
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment