[mpl] handle length computation overflow when inserting MPL header (#2092)

Credit to OSS-Fuzz.
This commit is contained in:
Jonathan Hui
2017-08-10 21:32:31 -07:00
committed by GitHub
parent 78247c8de9
commit 444d2e4c84
+1 -1
View File
@@ -167,7 +167,7 @@ otError Ip6::InsertMplOption(Message &aMessage, Header &aIp6Header, MessageInfo
if (aIp6Header.GetNextHeader() == kProtoHopOpts)
{
HopByHopHeader hbh;
uint8_t hbhLength = 0;
uint16_t hbhLength = 0;
OptionMpl mplOption;
// read existing hop-by-hop option header