diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-03 09:42:03 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-03 15:16:37 +0200 |
commit | 59015965485e08f53dad126e7393791e1df0825e (patch) | |
tree | de3d77856ba037b2dcc6646bc9eba68ab9786e28 /src/base58.cpp | |
parent | 6145fdf47e7c4e222c6d5b5abad2cd320ddc2648 (diff) |
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/base58.cpp')
0 files changed, 0 insertions, 0 deletions