We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99c2e48 commit a8bd389Copy full SHA for a8bd389
src/lib/support/ThreadOperationalDataset.cpp
@@ -318,7 +318,7 @@ CHIP_ERROR OperationalDataset::SetExtendedPanId(const uint8_t (&aExtendedPanId)[
318
319
tlv->SetValue(aExtendedPanId, sizeof(aExtendedPanId));
320
321
- assert(mLength + tlv->GetSize() < sizeof(mData));
+ assert(mLength + tlv->GetSize() <= sizeof(mData));
322
323
mLength = static_cast<uint8_t>(mLength + tlv->GetSize());
324
@@ -349,7 +349,7 @@ CHIP_ERROR OperationalDataset::SetMasterKey(const uint8_t (&aMasterKey)[kSizeMas
349
350
tlv->SetValue(aMasterKey, sizeof(aMasterKey));
351
352
353
354
355
0 commit comments