You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: recursive scan_value/redact_value in payload filter can stack overflow on deeply nested JSON #95
scan_value and redact_value in src/middleware/payload_filter.rs recurse into nested JSON without any depth limit. A payload with 10,000+ levels of nesting will overflow the stack and crash the server.
Location
src/middleware/payload_filter.rs
Fix
Add a max_depth parameter (default 64). On limit: either reject the payload with a JSON-RPC error or treat it as a block decision. Convert to iterative traversal using an explicit stack for robustness.
Activity
fix: prevent stack overflow on deeply nested JSON payloads (closes #95)