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 15:16:37 +0200 |
| commit | 59015965485e08f53dad126e7393791e1df0825e (patch) | |
| tree | de3d77856ba037b2dcc6646bc9eba68ab9786e28 /src/test/scrypt_tests.cpp | |
| parent | OSX: use "Bitcoin Core" as Bundle Display Name (diff) | |
| download | discoin-59015965485e08f53dad126e7393791e1df0825e.tar.xz discoin-59015965485e08f53dad126e7393791e1df0825e.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.
Github-Pull: #6226
Rebased-From: 4e157fc60dae5ca69933ea4c1585a2a078b4d957
Diffstat (limited to 'src/test/scrypt_tests.cpp')
0 files changed, 0 insertions, 0 deletions