Skip to content

Commit

Permalink
Limit the size of ParserError exception messages
Browse files Browse the repository at this point in the history
Fix: ruby#534

Only include up to 32 bytes of unparseable the source.
  • Loading branch information
byroot committed Oct 18, 2024
1 parent 09e1df2 commit 039d5ff
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 75 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changes

* Numerous performance optimizations in `JSON.generate` and `JSON.dump`.
* Limit the size of ParserError exception, only include up to 32 bytes of unparseable the source.
* Fix json-pure's `Object#to_json` to accept non state arguments
* Fix multiline comment support in `json-pure`.
* Fix `JSON.parse` to no longer mutate the argument encoding when passed an ASCII-8BIT string.
Expand Down
Loading

0 comments on commit 039d5ff

Please sign in to comment.