Skip to content

Commit

Permalink
Add back size comment
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin committed Oct 29, 2024
1 parent 9b04161 commit f77311a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/core/TLVReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint8_t>(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
Expand Down

0 comments on commit f77311a

Please sign in to comment.