We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b4578c commit a5d18f8Copy full SHA for a5d18f8
src/app/icd/server/ICDMonitoringTable.h
@@ -41,7 +41,7 @@ static constexpr size_t MaxICDMonitoringEntrySize()
41
sizeof(Crypto::Symmetric128BitsKeyByteArray) /*aes_key_handle*/,
42
sizeof(Crypto::Symmetric128BitsKeyByteArray) /*hmac_key_handle*/,
43
sizeof(uint8_t) /*client_type*/) *
44
- 3 / 2;
+ 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
45
}
46
47
inline constexpr size_t kICDMonitoringBufferSize = MaxICDMonitoringEntrySize();
0 commit comments