mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
92d7b9f93f
This commit introduces a recursion depth limit of 4 in Ip6::HandleDatagram to prevent unbounded stack recursion from deeply nested IPv6-in-IPv6 tunnel packets (NextHeader = 41). This mirrors the safety limit fix implemented in the 6LoWPAN layer decompress path (issue #12669). A new Nexus test case `ipv6_recursion` has been added to construct and verify that packets exceeding the depth limit are correctly dropped with kErrorDrop, while valid nesting depth succeeds.