mirror of https://github.com/ethereum/go-ethereum
rlp: handle case of normal EOF in Stream.readFull (#22336)
io.Reader may return n > 0 and io.EOF at the end of the input stream. readFull did not handle this correctly, looking only at the error. This fixes it to check for n == len(buf) as well.pull/22346/head
parent
52e5c38aa5
commit
9ec32a9e7b
Loading…
Reference in new issue