SIGN IN SIGN UP

add a bunch of bounds checking to pytree

Pull Request resolved: https://github.com/pytorch/executorch/pull/7654

It's possible to pass arbitrary string input to pytree from Python; let's not have a bunch of low-hanging memory safety issues.
ghstack-source-id: 265152272
@exported-using-ghexport

Differential Revision: [D68166303](https://our.internmc.facebook.com/intern/diff/D68166303/)

Co-authored-by: Github Executorch <github_executorch@arm.com>
P
pytorchbot committed
391bd68b13d07c3a7e2482a1183665f34cd546a4
Parent: 456928f
Committed by GitHub <noreply@github.com> on 2/7/2025, 4:25:28 AM