@ -55,7 +55,7 @@ FUZZ_TARGET_INIT(system, initialize_system)
[ & ] {
const OptionsCategory options_category = fuzzed_data_provider . PickValueInArray < OptionsCategory > ( { OptionsCategory : : OPTIONS , OptionsCategory : : CONNECTION , OptionsCategory : : WALLET , OptionsCategory : : WALLET_DEBUG_TEST , OptionsCategory : : ZMQ , OptionsCategory : : DEBUG_TEST , OptionsCategory : : CHAINPARAMS , OptionsCategory : : NODE_RELAY , OptionsCategory : : BLOCK_CREATION , OptionsCategory : : RPC , OptionsCategory : : GUI , OptionsCategory : : COMMANDS , OptionsCategory : : REGISTER_COMMANDS , OptionsCategory : : HIDDEN } ) ;
// Avoid hitting:
// util/system.cpp:425 : void ArgsManager::AddArg(const std::string &, const std::string &, unsigned int, const OptionsCategory &): Assertion `ret.second' failed.
// common/args.cpp:563 : void ArgsManager::AddArg(const std::string &, const std::string &, unsigned int, const OptionsCategory &): Assertion `ret.second' failed.
const std : : string argument_name = GetArgumentName ( fuzzed_data_provider . ConsumeRandomLengthString ( 16 ) ) ;
if ( args_manager . GetArgFlags ( argument_name ) ! = std : : nullopt ) {
return ;
@ -64,7 +64,7 @@ FUZZ_TARGET_INIT(system, initialize_system)
} ,
[ & ] {
// Avoid hitting:
// util/system.cpp:425 : void ArgsManager::AddArg(const std::string &, const std::string &, unsigned int, const OptionsCategory &): Assertion `ret.second' failed.
// common/args.cpp:563 : void ArgsManager::AddArg(const std::string &, const std::string &, unsigned int, const OptionsCategory &): Assertion `ret.second' failed.
const std : : vector < std : : string > names = ConsumeRandomLengthStringVector ( fuzzed_data_provider ) ;
std : : vector < std : : string > hidden_arguments ;
for ( const std : : string & name : names ) {