Limit path depth to prevent stack overflow
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Deeply nested path arrays can cause unbounded recursion in `jv_setpath`, `jv_getpath`, and `jv_delpaths`, leading to stack overflow. Add a depth limit of 10000 to match the existing `tojson` depth limit. This fixes CVE-2026-33947.
authored by itchyny · committed by itchyny · parent 2f09060 · Browse files · 2 files+46 added−0 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+46 added−0 removed
- tests:+25 added−0 removed
- other:+21 added−0 removed