Wladimir J. van der Laan 181771b712
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: 4e157fc60dae5ca69933ea4c1585a2a078b4d957
2015-06-03 15:16:18 +02:00
..
2015-03-19 00:14:28 -04:00
2014-11-20 17:22:06 +01:00
2015-02-01 17:57:38 -04:00
2015-05-12 16:33:04 +02:00
2015-02-03 10:33:58 +01:00
2014-11-03 16:16:40 +01:00
2015-04-01 16:39:55 +02:00
2014-11-03 16:16:40 +01:00
2014-12-03 10:52:58 +00:00
2014-12-03 10:52:58 +00:00
2014-11-03 16:16:40 +01:00
2014-12-03 10:52:58 +00:00
2015-03-19 00:14:28 -04:00
2014-12-03 10:52:58 +00:00
2014-12-05 11:24:39 +01:00
2014-11-20 17:22:02 +01:00
2014-11-20 17:22:02 +01:00
2014-12-01 14:57:58 +01:00
2014-12-01 14:57:58 +01:00
2015-03-09 11:13:35 +01:00
2015-05-27 09:10:56 +02:00
2014-08-28 22:25:21 +02:00
2014-12-03 10:52:58 +00:00
2015-03-19 00:14:28 -04:00
2014-11-03 16:16:40 +01:00
2014-11-20 17:22:02 +01:00
2014-11-25 08:18:33 +01:00
2015-04-14 10:52:03 +02:00
2014-12-03 10:52:58 +00:00
2014-11-03 16:16:40 +01:00
2014-10-03 04:29:51 +02:00