mirror of
https://github.com/espressif/openthread.git
synced 2026-08-14 22:57:46 +00:00
[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:
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user