mirror of
https://github.com/espressif/openthread.git
synced 2026-10-18 05:28:10 +00:00
fix upper limit error when processing MeshCoP TLVs in HandleDiscoveryResponse (#1383)
This commit is contained in:
@@ -3033,7 +3033,7 @@ ThreadError Mle::HandleDiscoveryResponse(const Message &aMessage, const Ip6::Mes
|
||||
VerifyOrExit(offset < end, error = kThreadError_Parse);
|
||||
|
||||
offset += sizeof(tlv);
|
||||
end = offset + sizeof(tlv) + tlv.GetLength();
|
||||
end = offset + tlv.GetLength();
|
||||
|
||||
memset(&result, 0, sizeof(result));
|
||||
result.mPanId = threadMessageInfo->mPanId;
|
||||
|
||||
Reference in New Issue
Block a user