mbed-os/storage/kvstore/securestore
Matthias Goebel 5fc4abe57b Added missing check for replay protection pointer before allocating new variable
Problem: If a key with write-once flag is being set in a SecureStore without rollback-protection store (i.e. _rbp_kv == NULL), additional memory will be allocated for the variable _ih->key. The memory will not be deleted, though, as the delete in line 434 only happens if a rollback-protection store exists (i.e. _rbp_kv != NULL)

Solution: Only allocate the memory if _rbp_kv != NULL

Contribution is provided on behalf of BIOTRONIK.
2024-05-16 10:51:12 +02:00
..
include/securestore Restruture device_key 2020-08-14 17:31:11 +01:00
source Added missing check for replay protection pointer before allocating new variable 2024-05-16 10:51:12 +02:00
tests/TESTS/securestore/whitebox SecureStore whitebox test: flash simulation no longer required 2020-12-11 14:56:39 +00:00
CMakeLists.txt CMake: streamline kvstore support 2020-12-17 13:09:38 +00:00
mbed_lib.json Remove doubly defined symbol from mbed_lib.json 2020-07-22 10:02:53 +01:00