google / json5format

JSON5 (a.k.a., "JSON for Humans") formatter that preserves contextual comments

Home Page:https://crates.io/crates/json5format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Address stack overflow error revealed by oss-fuzz if there are too many unclosed braces

richkadel opened this issue · comments

In the unlikely event that a document has thousands of open braces without closing braces, the program can crash with a stack overflow. See for example:

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34603