[mle] increase Route TLV length to avoid buffer overflow (#2431)

Properly formed Route TLVs should never have more than 32 route entries.
This fix follows a "be liberal in what you accept" approach.

Credit to OSS-Fuzz.
This commit is contained in:
Jonathan Hui
2017-12-20 17:04:03 +00:00
committed by GitHub
parent ea75fe719f
commit 44a7ba393a
+1 -1
View File
@@ -603,7 +603,7 @@ private:
};
uint8_t mRouterIdSequence;
uint8_t mRouterIdMask[BitVectorBytes(kMaxRouterId + 1)];
uint8_t mRouteData[kMaxRouters];
uint8_t mRouteData[kMaxRouterId + 1];
} OT_TOOL_PACKED_END;
/**