Fix for issue #282
The fix limits recursion depths when parsing arrays and objects. The limit is configurable via the `JSON_PARSER_MAX_DEPTH` setting within `jansson_config.h` and is set by default to 2048. Update the RFC conformance document to note the limit; the RFC allows limits to be set by the implementation so nothing has actually changed w.r.t. conformance state. Reported by Gustavo Grieco.
This commit is contained in:
committed by
Administrator
parent
087ed94c45
commit
64ce0ad373
2
test/suites/invalid/recursion-depth/error
Normal file
2
test/suites/invalid/recursion-depth/error
Normal file
@@ -0,0 +1,2 @@
|
||||
1 2049 2049
|
||||
maximum parsing depth reached near '['
|
||||
Reference in New Issue
Block a user