jcrist / msgspec

A fast serialization and validation library, with builtin support for JSON, MessagePack, YAML, and TOML
https://jcristharif.com/msgspec/
BSD 3-Clause "New" or "Revised" License
2.44k stars 75 forks source link

Add tests for encoding/decoding highly recursive messages #646

Closed jcrist closed 9 months ago

jcrist commented 9 months ago

This adds a test case found in the orjson repo to ensure that we properly respect recursion limits when encoding or decoding deeply recursive messages.

No code change is needed at this time, we properly manage recursion limits already.