mirror of
https://github.com/espressif/openthread.git
synced 2026-08-04 09:57:47 +00:00
[network-data] add length validation to Service TLV (#2542)
Credit to OSS-Fuzz.
This commit is contained in:
@@ -862,6 +862,7 @@ otError Leader::AddService(ServiceTlv &aService, uint8_t *aOldTlvs, uint8_t aOld
|
||||
NetworkDataTlv *cur;
|
||||
NetworkDataTlv *end;
|
||||
|
||||
VerifyOrExit(aService.IsValid(), error = OT_ERROR_PARSE);
|
||||
cur = aService.GetSubTlvs();
|
||||
end = aService.GetNext();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user