From f77311a9ed1bf98f8365362cd8fbefbf3e8c5379 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Tue, 29 Oct 2024 14:27:18 -0400 Subject: [PATCH] Add back size comment --- src/lib/core/TLVReader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/core/TLVReader.cpp b/src/lib/core/TLVReader.cpp index 0c8c890922a1e2..3f9689c6998a89 100644 --- a/src/lib/core/TLVReader.cpp +++ b/src/lib/core/TLVReader.cpp @@ -767,6 +767,7 @@ CHIP_ERROR TLVReader::ReadElement() // length bytes (if present), and for elements that don't have a length (e.g. integers), the value bytes. const uint8_t elemHeadBytes = static_cast(1 + tagBytes + valOrLenBytes); + // 17 = 1 control byte + 8 tag bytes + 8 length/value bytes uint8_t stagingBuf[17]; // Odd workaround: clang-tidy claims garbage value otherwise as it does not