mirror of https://github.com/ARMmbed/mbed-os.git
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. |
||
---|---|---|
.. | ||
include/securestore | ||
source | ||
tests/TESTS/securestore/whitebox | ||
CMakeLists.txt | ||
mbed_lib.json |