Skip to content

Commit

Permalink
[tlv] Disable 64-bit lengths. NCC-E003350-GH4 (#19539)
Browse files Browse the repository at this point in the history
  • Loading branch information
turon authored Jun 17, 2022
1 parent 5ea0ca6 commit 504c761
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/core/CHIPTLVReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ CHIP_ERROR TLVReader::ReadElement()
break;
case kTLVFieldSize_8Byte:
mElemLenOrVal = LittleEndian::Read64(p);
VerifyOrReturnError(!TLVTypeHasLength(elemType) || (mElemLenOrVal <= UINT32_MAX), CHIP_ERROR_NOT_IMPLEMENTED);
break;
}

Expand Down

0 comments on commit 504c761

Please sign in to comment.