aboutsummaryrefslogtreecommitdiff
path: root/src/test/bignum.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-06-03 09:42:03 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-06-03 15:16:37 +0200
commit59015965485e08f53dad126e7393791e1df0825e (patch)
treede3d77856ba037b2dcc6646bc9eba68ab9786e28 /src/test/bignum.h
parent6145fdf47e7c4e222c6d5b5abad2cd320ddc2648 (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/test/bignum.h')
0 files changed, 0 insertions, 0 deletions