Skip to content

Commit 259d3c1

Browse files
authored
Merge pull request ruby#625 from casperisfine/limit-error-message
Limit the size of ParserError exception messages
2 parents 421cc9f + f44995c commit 259d3c1

File tree

7 files changed

+162
-132
lines changed

7 files changed

+162
-132
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)