rlp: fix string size check in readKind (#15625)

Issue found by @guidovranken
This commit is contained in:
Felix Lange
2017-12-11 22:47:10 +01:00
committed by GitHub
parent e7610eadfe
commit 2499b1b139
2 changed files with 2 additions and 1 deletions

View File

@ -96,6 +96,7 @@ func TestSplit(t *testing.T) {
{input: "F90055", err: ErrCanonSize, rest: "F90055"},
{input: "FA0002FFFF", err: ErrCanonSize, rest: "FA0002FFFF"},
{input: "81", err: ErrValueTooLarge, rest: "81"},
{input: "8501010101", err: ErrValueTooLarge, rest: "8501010101"},
{input: "C60607080902", err: ErrValueTooLarge, rest: "C60607080902"},