diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-06-03 09:42:03 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-06-03 12:18:40 +0200 |
| commit | 4e157fc60dae5ca69933ea4c1585a2a078b4d957 (patch) | |
| tree | aa97c939b76802d946b9c3f06351f1fdfcca1579 /src/test/script_tests.cpp | |
| parent | Merge pull request #6203 (diff) | |
| download | discoin-4e157fc60dae5ca69933ea4c1585a2a078b4d957.tar.xz discoin-4e157fc60dae5ca69933ea4c1585a2a078b4d957.zip | |
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.
Diffstat (limited to 'src/test/script_tests.cpp')
0 files changed, 0 insertions, 0 deletions