Skip to content

Commit 1404f80

Browse files
[ICD] Fix wrong MaxICDClientInfoSize (project-chip#32500)
* fix wrong MaxICDClientInfoSize * Restyled by clang-format --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent ad14dbc commit 1404f80

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/app/icd/client/DefaultICDClientStorage.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,10 @@ class DefaultICDClientStorage : public ICDClientStorage
155155
static constexpr size_t MaxICDClientInfoSize()
156156
{
157157
// All the fields added together
158-
return TLV::EstimateStructOverhead(sizeof(NodeId), sizeof(FabricIndex), sizeof(uint32_t), sizeof(uint32_t),
159-
sizeof(uint64_t), sizeof(Crypto::Symmetric128BitsKeyByteArray));
158+
return TLV::EstimateStructOverhead(sizeof(NodeId), sizeof(FabricIndex), sizeof(uint32_t) /*start_icd_counter*/,
159+
sizeof(uint32_t) /*offset*/, sizeof(uint64_t) /*monitored_subject*/,
160+
sizeof(Crypto::Symmetric128BitsKeyByteArray) /*aes_key_handle*/,
161+
sizeof(Crypto::Symmetric128BitsKeyByteArray) /*hmac_key_handle*/);
160162
}
161163

162164
static constexpr size_t MaxICDCounterSize()

0 commit comments

Comments
 (0)