mbed-os/features
Seppo Takalo 8f77de6453 TDBStore safety check: Erase if there is valid keys on the free space.
In case our are contains data from previous reset() or reset_area(),
we might  end up in the situation  where  free space contains valid
key headers,  but we have not erased that area  yet. This can cause
failures if the deinit() and init()  because  new scan of that area
would continue  as long as keys  are found. This causes keys on the
not-yet-erased  area to be included in the new instance of TDBStore.

To prevent this failure,  check  after each key-write that our free
space does not contain valid  key headers.  Also make sure  that we
erase one program unit sector over the master record.  If we erased
just the master record,first key might is still there, causing next
init() to find it.  Extend erase area by  one program unit, so that
build_ram_table() won't find any keys.
2019-11-28 10:37:07 +02:00
..
FEATURE_BLE Merge pull request #11887 from kyle-cypress/pr/target-p62s1-43438 2019-11-25 18:32:48 +01:00
FEATURE_BOOTLOADER Squashed 'features/nanostack/coap-service/' changes from 086e7ba..3c79829 2019-05-21 14:21:19 +03:00
cellular Merge pull request #11949 from ARMmbed/acabarbaye-patch-1 2019-11-27 13:12:14 +01:00
cryptocell/FEATURE_CRYPTOCELL310 Fix Failure in cc ecdh_alt montgomery curve 2019-09-18 16:48:45 +03:00
deprecated_warnings Squashed 'features/nanostack/coap-service/' changes from 086e7ba..3c79829 2019-05-21 14:21:19 +03:00
device_key Incorporated the review comments 2019-11-08 09:50:09 -08:00
frameworks Update mbed-coap to version 5.1.2 2019-11-20 22:36:25 +02:00
lorawan LoRa: Fix build warning about _ongoing_tx_msg 2019-09-30 12:36:55 +03:00
lwipstack Merge pull request #11881 from hugueskamba/hk-UBLOX_EVK_ODIN_W2-enable-baremetal 2019-11-25 08:40:33 +01:00
mbedtls Merge pull request #11711 from jeromecoutant/PULL_REQUEST_CUBE_UPDATE_F7_V1.15.0 2019-11-07 11:33:38 +01:00
nanostack Merge pull request #11914 from michalpasztamobica/refactor_string_based_apis 2019-11-22 12:00:56 +01:00
netsocket Merge pull request #11914 from michalpasztamobica/refactor_string_based_apis 2019-11-22 12:00:56 +01:00
nfc NFCEEPROM: fix _ndef_buffer_reader init in ctor. 2019-09-23 15:34:07 +02:00
storage TDBStore safety check: Erase if there is valid keys on the free space. 2019-11-28 10:37:07 +02:00
unsupported Merge pull request #10653 from desowin/stm-usb-host 2019-06-09 18:01:46 +01:00