btcsuite / btcd

An alternative full node bitcoin implementation written in Go (golang)
https://github.com/btcsuite/btcd/blob/master/README.md
ISC License
6.2k stars 2.35k forks source link

Check if there is ipv4 or tor addresses embedded in ipv6 is missing for `netaddressv2` #2207

Open brunoerg opened 3 months ago

brunoerg commented 3 months ago

When reading a netaddressv2, btcd doesn't check if there is an ipv4 embedded into an ipv6 address, this might be ok for v1 encoding but not for v2. This kind of address, for example, is ignored by Core and pointed out as invalid.

For reference: https://github.com/brunoerg/bitcoinfuzz/issues/49