-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
The parser is recursive for skipped values, objects, arrays, sets, tuples, and JsonNode. There is no nesting limit or iterative fallback. Large nesting depth can exhaust the call stack.
import jsony
import std/os
import std/strutils
let depth =
if paramCount() >= 1:
parseInt(paramStr(1))
else:
100000
let payload = repeat("[", depth) & "0" & repeat("]", depth)
discard payload.fromJson()Found by GPT 5.4.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels