Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: fs: nvs: Add undetected bad ATE length + offset test
Tamper an ATE to simulate an ATE CRC-8 undetected error. Write 4 items of various data size, with the item zephyrproject-rtos#1 simulating a CRC-8 undetected error on the item offset and size. The offset is decreased to overflow on the preceding item #0. The data size is increased to overflow on item 2 and part of item 3. Thanks to the data CRC-32, reading item zephyrproject-rtos#1 returns an error. After running the garbage collector, the faulty item 1 has been copied with parts of items #0, zephyrproject-rtos#2 and zephyrproject-rtos#3 data. The other items are healthy and the NVS is still working. Signed-off-by: Adrien Ricciardi <[email protected]>
- Loading branch information