@ -252,7 +252,7 @@ FUZZ_TARGET(netaddr_deserialize, .init = initialize_deserialize)
if ( ! maybe_na ) return ;
if ( ! maybe_na ) return ;
const CNetAddr & na { * maybe_na } ;
const CNetAddr & na { * maybe_na } ;
if ( na . IsAddrV1Compatible ( ) ) {
if ( na . IsAddrV1Compatible ( ) ) {
AssertEqualAfterSerializeDeserialize ( na , C onsumeDeserializationParams< CNetAddr : : SerParams > ( fdp ) ) ;
AssertEqualAfterSerializeDeserialize ( na , C NetAddr: : V1 ) ;
}
}
AssertEqualAfterSerializeDeserialize ( na , CNetAddr : : V2 ) ;
AssertEqualAfterSerializeDeserialize ( na , CNetAddr : : V2 ) ;
}
}
@ -264,7 +264,7 @@ FUZZ_TARGET(service_deserialize, .init = initialize_deserialize)
if ( ! maybe_s ) return ;
if ( ! maybe_s ) return ;
const CService & s { * maybe_s } ;
const CService & s { * maybe_s } ;
if ( s . IsAddrV1Compatible ( ) ) {
if ( s . IsAddrV1Compatible ( ) ) {
AssertEqualAfterSerializeDeserialize ( s , C onsumeDeserializationParams< CNetAddr : : SerParams > ( fdp ) ) ;
AssertEqualAfterSerializeDeserialize ( s , C NetAddr: : V1 ) ;
}
}
AssertEqualAfterSerializeDeserialize ( s , CNetAddr : : V2 ) ;
AssertEqualAfterSerializeDeserialize ( s , CNetAddr : : V2 ) ;
if ( ser_params . enc = = CNetAddr : : Encoding : : V1 ) {
if ( ser_params . enc = = CNetAddr : : Encoding : : V1 ) {
@ -279,8 +279,8 @@ FUZZ_TARGET_DESERIALIZE(messageheader_deserialize, {
FUZZ_TARGET ( address_deserialize , . init = initialize_deserialize )
FUZZ_TARGET ( address_deserialize , . init = initialize_deserialize )
{
{
FuzzedDataProvider fdp { buffer . data ( ) , buffer . size ( ) } ;
FuzzedDataProvider fdp { buffer . data ( ) , buffer . size ( ) } ;
const auto ser_enc { ConsumeDeserializationParams < C Net Addr: : SerParams > ( fdp ) } ;
const auto ser_enc { ConsumeDeserializationParams < C Address : : SerParams > ( fdp ) } ;
const auto maybe_a { ConsumeDeserializable < CAddress > ( fdp , CAddress: : SerParams { { ser_enc} , CAddress : : Format : : Network } ) } ;
const auto maybe_a { ConsumeDeserializable < CAddress > ( fdp , ser_enc) } ;
if ( ! maybe_a ) return ;
if ( ! maybe_a ) return ;
const CAddress & a { * maybe_a } ;
const CAddress & a { * maybe_a } ;
// A CAddress in V1 mode will roundtrip
// A CAddress in V1 mode will roundtrip