You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just got a crash in addrv2 (#48) target because when deserializing addrv2 addresses rust-bitcoin checks whether TorV2 address is valid and throws an error if it is invalid. However, when deserializing an addrv2, Bitcoin Core doesn't validate TorV2 anymore (Core removed support for torv2 - bitcoin/bitcoin#22050) and simply ignore it. So, the message is valid but the addr is ignored.
3 => {if len != 10{returnErr(encode::Error::ParseFailed("Invalid TorV2 address"));}let id = Decodable::consensus_decode(r)?;AddrV2::TorV2(id)}
However, it might be an issue in Bitcoin Core, because even not supporting torv2, it should validate the length according to the BIP.
The text was updated successfully, but these errors were encountered:
I just got a crash in addrv2 (#48) target because when deserializing addrv2 addresses rust-bitcoin checks whether TorV2 address is valid and throws an error if it is invalid. However, when deserializing an addrv2, Bitcoin Core doesn't validate TorV2 anymore (Core removed support for torv2 - bitcoin/bitcoin#22050) and simply ignore it. So, the message is valid but the addr is ignored.
However, it might be an issue in Bitcoin Core, because even not supporting torv2, it should validate the length according to the BIP.
The text was updated successfully, but these errors were encountered: