forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
93650: util/json: Correctly handle trailing tokens r=miretskiy a=miretskiy Fix a bug in fast json parser implementation where it would incorrectly allow arrays (or objects) with trailing comma (`[1,2,]`). Add test cases for this regression. Implement a mechanism to generate corrupt random JSON inputs, and use that to build fuzz test comparing results of parsing using standard Go JSON parser with fast JSON parser. Fixes cockroachdb#93613 Epic: none Release note: None Co-authored-by: Yevgeniy Miretskiy <[email protected]>
- Loading branch information
Showing
3 changed files
with
236 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters