sigp / enr

Ethereum Node Record
MIT License
61 stars 29 forks source link

check enr size while decoding rlp #58

Closed divagant-martian closed 1 year ago

divagant-martian commented 1 year ago

The size for the Enr was checked in the FromStr implementation. This leaves decoding rlp in cases like node responses without this check. This moves the check to the Decodable implementation to correctly reject Enrs that are too big