le_device_db_tlv: check entry index

This commit is contained in:
Milanka Ringwald 2020-09-24 15:16:08 +02:00
parent 21c2455c51
commit db5aaf2afe

View File

@ -180,6 +180,9 @@ int le_device_db_max_count(void){
}
void le_device_db_remove(int index){
btstack_assert(index >= 0);
btstack_assert(index < le_device_db_max_count());
// check if entry exists
if (entry_map[index] == 0u) return;