mirror of
https://github.com/espressif/openthread.git
synced 2026-08-06 10:47:46 +00:00
[coap] process Option Length = 0xf as a format error (#3530)
This commit is contained in:
@@ -268,7 +268,7 @@ const otCoapOption *Message::GetNextOption(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
ExitNow();
|
||||
ExitNow(error = OT_ERROR_PARSE);
|
||||
}
|
||||
|
||||
VerifyOrExit(optionLength <= GetLength() - GetHelpData().mNextOptionOffset, error = OT_ERROR_PARSE);
|
||||
|
||||
Reference in New Issue
Block a user