fastjson icon indicating copy to clipboard operation
fastjson copied to clipboard

Validate hangs with deeply nested arrays

Open WillAbides opened this issue 4 years ago • 1 comments

This bit of invalid json causes Validate to hang:

https://github.com/nst/JSONTestSuite/blob/master/test_parsing/n_structure_100000_opening_arrays.json

WillAbides avatar Apr 05 '21 23:04 WillAbides

I saw the same behavior while implementing https://github.com/valyala/fastjson/pull/68.
Recommend enforcing 500 depth (as global var) for both parse and validate.

kevburnsjr avatar May 18 '21 09:05 kevburnsjr