ethereum / ethereumj

DEPRECATED! Java implementation of the Ethereum yellowpaper. For JSON-RPC and other client features check Ethereum Harmony
GNU Lesser General Public License v3.0
2.18k stars 1.1k forks source link

Throw RLP exception in case if integer value is prepended with zeros #1175

Open mkalinin opened 6 years ago

mkalinin commented 6 years ago

Reading from the spec

positive RLP integers must be represented in big endian binary form with no leading zeroes (thus making the integer value zero be equivalent to the empty byte array)