Skip to content

Commit 40ac3d1

Browse files
Update ICDMonitoringTable.h
1 parent 4b4578c commit 40ac3d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/icd/server/ICDMonitoringTable.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static constexpr size_t MaxICDMonitoringEntrySize()
4141
sizeof(Crypto::Symmetric128BitsKeyByteArray) /*aes_key_handle*/,
4242
sizeof(Crypto::Symmetric128BitsKeyByteArray) /*hmac_key_handle*/,
4343
sizeof(uint8_t) /*client_type*/) *
44-
3 / 2;
44+
3 / 2; // Expect to have at least 50% to make sure we can grow and then if there is a firmware upgrade/downgrade, it doesn't brick
4545
}
4646

4747
inline constexpr size_t kICDMonitoringBufferSize = MaxICDMonitoringEntrySize();

0 commit comments

Comments
 (0)