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

If a document ends with an unclosed block comment, the parser will crash

richkadel opened this issue · comments

While fixing another problem revealed by an oss-fuzz test, the given sample also revealed a problem when parsing a document that has an open block comment that is never closed. Instead of crashing, this should be a parser error.