Skip to content

Commit f44995c

Browse files
committed
Limit the size of ParserError exception messages
Fix: ruby#534 Only include up to 32 bytes of unparseable the source.
1 parent 09e1df2 commit f44995c

File tree

7 files changed

+108
-78
lines changed

7 files changed

+108
-78
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changes
22

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

Rakefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ else
258258
task :compile => [ :ragel, EXT_PARSER_DL, EXT_GENERATOR_DL ]
259259
end
260260

261-
262261
desc "Testing library (extension)"
263262
task :test_ext => [ :set_env_ext, :check_env, :compile, :do_test_ext ]
264263
task(:set_env_ext) { ENV['JSON'] = 'ext' }

0 commit comments

Comments
 (0)