neobytes/src/json
Wladimir J. van der Laan c709b86a5d json: fail read_string if string contains trailing garbage
Change `read_string` to fail when not the entire input has been
consumed. This avoids unexpected, even dangerous behavior (fixes #6223).

The new JSON parser adapted in #6121 also solves this problem so in
master this is a temporary fix, but should be backported to older releases.

Also adds tests for the new behavior.

Github-Pull: #6226
Rebased-From: 4e157fc60d
2015-07-14 13:19:08 +03:00
..
json_spirit_error_position.h directory re-organization (keeps the old build system) 2011-04-23 12:10:25 +02:00
json_spirit_reader_template.h json: fail read_string if string contains trailing garbage 2015-07-14 13:19:08 +03:00
json_spirit_reader.cpp directory re-organization (keeps the old build system) 2011-04-23 12:10:25 +02:00
json_spirit_reader.h directory re-organization (keeps the old build system) 2011-04-23 12:10:25 +02:00
json_spirit_stream_reader.h directory re-organization (keeps the old build system) 2011-04-23 12:10:25 +02:00
json_spirit_utils.h directory re-organization (keeps the old build system) 2011-04-23 12:10:25 +02:00
json_spirit_value.cpp directory re-organization (keeps the old build system) 2011-04-23 12:10:25 +02:00
json_spirit_value.h switch from boost int types to <stdint.h> 2014-05-21 11:25:18 +02:00
json_spirit_writer_template.h Silence useless warning in src/json/json_spirit_writer_template.h to make important warnings easier to see. 2013-09-07 21:20:46 -10:00
json_spirit_writer.cpp directory re-organization (keeps the old build system) 2011-04-23 12:10:25 +02:00
json_spirit_writer.h directory re-organization (keeps the old build system) 2011-04-23 12:10:25 +02:00
json_spirit.h directory re-organization (keeps the old build system) 2011-04-23 12:10:25 +02:00
LICENSE.txt directory re-organization (keeps the old build system) 2011-04-23 12:10:25 +02:00