From 96076d3aa4062bc568748e4136ac6b71a855382b Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Tue, 29 Jan 2019 08:55:59 -0800 Subject: [PATCH] [coap] process Option Length = 0xf as a format error (#3530) --- src/core/coap/coap_message.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/coap/coap_message.cpp b/src/core/coap/coap_message.cpp index 5580e0a08..627302535 100644 --- a/src/core/coap/coap_message.cpp +++ b/src/core/coap/coap_message.cpp @@ -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);