Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use fuzz target binary and source file from FI APIs #664

Merged
merged 2 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
26 changes: 13 additions & 13 deletions benchmark-sets/all/abseil-cpp.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
"functions":
- "name": "_ZZN4absl19str_format_internal12_GLOBAL__N_115BinaryToDecimal13RunConversionENS_7uint128EiNS_11FunctionRefIFvS2_EEEENKUlNS_4SpanIjEEE_clES8_"
"params":
- "name": "this"
"type": "bool "
- "name": "input"
"type": "bool "
- "name": ""
"type": "size_t"
"return_type": "void"
"signature": "void absl::str_format_internal::(anonymous namespace)::BinaryToDecimal::operator()(const void *, Span<unsigned int>)"
- "name": "_ZZN4absl19str_format_internal12_GLOBAL__N_124FractionalDigitGenerator13RunConversionENS_7uint128EiNS_11FunctionRefIFvS2_EEEENKUlNS_4SpanIjEEE_clES8_"
"params":
- "name": "this"
Expand All @@ -27,14 +17,16 @@
"type": "bool "
"return_type": "void"
"signature": "void absl::str_format_internal::(anonymous namespace)::operator()(const void *, BinaryToDecimal)"
- "name": "_ZZN4absl19str_format_internal12_GLOBAL__N_122FormatFNegativeExpSlowENS_7uint128EiRKNS1_11FormatStateEENK3$_0clENS1_24FractionalDigitGeneratorE"
- "name": "_ZZN4absl19str_format_internal12_GLOBAL__N_115BinaryToDecimal13RunConversionENS_7uint128EiNS_11FunctionRefIFvS2_EEEENKUlNS_4SpanIjEEE_clES8_"
"params":
- "name": "this"
"type": "bool "
- "name": "digit_gen"
- "name": "input"
"type": "bool "
- "name": ""
"type": "size_t"
"return_type": "void"
"signature": "void absl::str_format_internal::(anonymous namespace)::operator()(const void *, FractionalDigitGenerator)"
"signature": "void absl::str_format_internal::(anonymous namespace)::BinaryToDecimal::operator()(const void *, Span<unsigned int>)"
- "name": "_ZNK4absl11string_view13find_first_ofEPKcm"
"params":
- "name": "this"
Expand All @@ -45,6 +37,14 @@
"type": "size_t"
"return_type": "size_t"
"signature": "size_type absl::string_view::find_first_of(Nonnull<const char *>, size_type)"
- "name": "_ZZN4absl19str_format_internal12_GLOBAL__N_122FormatFNegativeExpSlowENS_7uint128EiRKNS1_11FormatStateEENK3$_0clENS1_24FractionalDigitGeneratorE"
"params":
- "name": "this"
"type": "bool "
- "name": "digit_gen"
"type": "bool "
"return_type": "void"
"signature": "void absl::str_format_internal::(anonymous namespace)::operator()(const void *, FractionalDigitGenerator)"
"language": "c++"
"project": "abseil-cpp"
"target_name": "string_escape_fuzzer"
Expand Down
34 changes: 17 additions & 17 deletions benchmark-sets/all/ada-url.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
"functions":
- "name": "ada_parse_with_base"
"params":
- "name": "input"
"type": "bool "
- "name": "input_length"
"type": "size_t"
- "name": "base"
"type": "bool "
- "name": "base_length"
"type": "size_t"
"return_type": "void"
"signature": "ada_url ada_parse_with_base(const char *, size_t, const char *, size_t)"
- "name": "_ZN3ada6parser9parse_urlINS_3urlEEET_NSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEPKS3_"
"params":
- "name": "user_input"
Expand All @@ -11,18 +23,6 @@
"type": "bool "
"return_type": "void"
"signature": "struct url ada::url ada::parser::parse_url<ada::parse_url<ada::url>(string_view, const struct url *)"
- "name": "ada_can_parse_with_base"
"params":
- "name": "input"
"type": "bool "
- "name": "input_length"
"type": "size_t"
- "name": "base"
"type": "bool "
- "name": "base_length"
"type": "size_t"
"return_type": "bool"
"signature": "bool ada_can_parse_with_base(const char *, size_t, const char *, size_t)"
- "name": "ada_idna_to_ascii"
"params":
- "name": "input"
Expand All @@ -31,7 +31,7 @@
"type": "size_t"
"return_type": "void"
"signature": "struct ada_owned_string ada_idna_to_ascii(const char *, size_t)"
- "name": "ada_parse_with_base"
- "name": "ada_can_parse_with_base"
"params":
- "name": "input"
"type": "bool "
Expand All @@ -41,8 +41,8 @@
"type": "bool "
- "name": "base_length"
"type": "size_t"
"return_type": "void"
"signature": "ada_url ada_parse_with_base(const char *, size_t, const char *, size_t)"
"return_type": "bool"
"signature": "bool ada_can_parse_with_base(const char *, size_t, const char *, size_t)"
- "name": "_ZN3ada6parser9parse_urlINS_14url_aggregatorEEET_NSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEPKS3_"
"params":
- "name": "user_input"
Expand All @@ -57,5 +57,5 @@
"signature": "struct url ada::url_aggregator ada::parser::parse_url<ada::parse_url<ada::url>(string_view, const struct url *)"
"language": "c++"
"project": "ada-url"
"target_name": "parse"
"target_path": "/src/ada-url/fuzz/parse.cc"
"target_name": "url_search_params"
"target_path": "/src/ada-url/fuzz/url_search_params.cc"
73 changes: 73 additions & 0 deletions benchmark-sets/all/apache-logging-log4cxx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
"functions":
- "name": "_ZN7log4cxx3xml15DOMConfigurator9parseRootERNS_7helpers4PoolERNSt3__110shared_ptrINS2_14CharsetDecoderEEEP12apr_xml_elemP11apr_xml_docRNS5_3mapINS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEENS6_INS_8AppenderEEENS5_4lessISK_EENSI_INS5_4pairIKSK_SM_EEEEEE"
"params":
- "name": "this"
"type": "bool "
- "name": "p"
"type": "bool "
- "name": "utf8Decoder"
"type": "bool "
- "name": "rootElement"
"type": "bool "
- "name": "doc"
"type": "bool "
- "name": "appenders"
"type": "bool "
"return_type": "void"
"signature": "void log4cxx::xml::DOMConfigurator::parseRoot(Pool &, CharsetDecoderPtr &, apr_xml_elem *, apr_xml_doc *, AppenderMap &)"
- "name": "_ZN7log4cxx7rolling19RollingFileAppender9subAppendERKNSt3__110shared_ptrINS_3spi12LoggingEventEEERNS_7helpers4PoolE"
"params":
- "name": "this"
"type": "bool "
- "name": "event"
"type": "bool "
- "name": "p"
"type": "bool "
"return_type": "void"
"signature": "void log4cxx::rolling::RollingFileAppender::subAppend(const LoggingEventPtr &, Pool &)"
- "name": "_ZN7log4cxx3xml15DOMConfigurator5parseERNS_7helpers4PoolERNSt3__110shared_ptrINS2_14CharsetDecoderEEEP12apr_xml_elemP11apr_xml_docRNS5_3mapINS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEENS6_INS_8AppenderEEENS5_4lessISK_EENSI_INS5_4pairIKSK_SM_EEEEEE"
"params":
- "name": "this"
"type": "bool "
- "name": "p"
"type": "bool "
- "name": "utf8Decoder"
"type": "bool "
- "name": "element"
"type": "bool "
- "name": "doc"
"type": "bool "
- "name": "appenders"
"type": "bool "
"return_type": "void"
"signature": "void log4cxx::xml::DOMConfigurator::parse(Pool &, CharsetDecoderPtr &, apr_xml_elem *, apr_xml_doc *, AppenderMap &)"
- "name": "_ZN7log4cxx3xml15DOMConfigurator11parseLoggerERNS_7helpers4PoolERNSt3__110shared_ptrINS2_14CharsetDecoderEEEP12apr_xml_elemP11apr_xml_docRNS5_3mapINS5_12basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEENS6_INS_8AppenderEEENS5_4lessISK_EENSI_INS5_4pairIKSK_SM_EEEEEE"
"params":
- "name": "this"
"type": "bool "
- "name": "p"
"type": "bool "
- "name": "utf8Decoder"
"type": "bool "
- "name": "loggerElement"
"type": "bool "
- "name": "doc"
"type": "bool "
- "name": "appenders"
"type": "bool "
"return_type": "void"
"signature": "void log4cxx::xml::DOMConfigurator::parseLogger(Pool &, CharsetDecoderPtr &, apr_xml_elem *, apr_xml_doc *, AppenderMap &)"
- "name": "_ZN7log4cxx3xml15DOMConfigurator11doConfigureERKNS_4FileENSt3__110shared_ptrINS_3spi16LoggerRepositoryEEE"
"params":
- "name": "this"
"type": "bool "
- "name": "filename"
"type": "bool "
- "name": "repository"
"type": "bool "
"return_type": "int"
"signature": "N/A ()"
"language": "c++"
"project": "apache-logging-log4cxx"
"target_name": "/src/logging-log4cxx/src/cmake/LibFuzzerTest.cpp"
"target_path": "/src/logging-log4cxx/src/cmake/LibFuzzerTest.cpp"
4 changes: 2 additions & 2 deletions benchmark-sets/all/arduinojson.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"functions":
- "name": "_ZN11ArduinoJson8V710HB426detail11VariantSlotdlEPvS3_"
- "name": "_ZN11ArduinoJson8V720HB426detail11VariantDatadlEPvS3_"
"params":
- "name": ""
"type": "bool "
- "name": ""
"type": "bool "
"return_type": "void"
"signature": "void ArduinoJson::V710HB42::detail::VariantSlot::operator delete(void *, void *)"
"signature": "void ArduinoJson::V720HB42::detail::VariantData::operator delete(void *, void *)"
"language": "c++"
"project": "arduinojson"
"target_name": "msgpack_fuzzer"
Expand Down
28 changes: 14 additions & 14 deletions benchmark-sets/all/astc-encoder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@
"type": "int"
"return_type": "bool"
"signature": "bool is_legal_2d_block_size(unsigned int, unsigned int)"
- "name": "_Z22is_legal_3d_block_sizejjj"
- "name": "_ZNK25symbolic_compressed_block20get_color_quant_modeEv"
"params":
- "name": "xdim"
"type": "int"
- "name": "ydim"
"type": "int"
- "name": "zdim"
"type": "int"
"return_type": "bool"
"signature": "bool is_legal_3d_block_size(unsigned int, unsigned int, unsigned int)"
- "name": "this"
"type": "bool "
"return_type": "int"
"signature": "DW_TAG_enumeration_typequant_method symbolic_compressed_block::get_color_quant_mode(const struct symbolic_compressed_block *)"
- "name": "_Z10encode_ise12quant_methodjPKhPhj"
"params":
- "name": "quant_level"
Expand All @@ -41,12 +37,16 @@
"type": "bool "
"return_type": "void"
"signature": "void symbolic_to_physical(const struct block_size_descriptor &, const struct symbolic_compressed_block &, uint8_t *)"
- "name": "_ZNK25symbolic_compressed_block20get_color_quant_modeEv"
- "name": "_Z22is_legal_3d_block_sizejjj"
"params":
- "name": "this"
"type": "bool "
"return_type": "int"
"signature": "DW_TAG_enumeration_typequant_method symbolic_compressed_block::get_color_quant_mode(const struct symbolic_compressed_block *)"
- "name": "xdim"
"type": "int"
- "name": "ydim"
"type": "int"
- "name": "zdim"
"type": "int"
"return_type": "bool"
"signature": "bool is_legal_3d_block_size(unsigned int, unsigned int, unsigned int)"
"language": "c++"
"project": "astc-encoder"
"target_name": "fuzz_astc_physical_to_symbolic"
Expand Down
20 changes: 10 additions & 10 deletions benchmark-sets/all/avahi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@
"type": "bool "
"return_type": "void"
"signature": "AvahiStringList * avahi_string_list_add_vprintf(AvahiStringList *, const char *, struct __va_list_tag *)"
- "name": "avahi_string_list_add_printf"
- "name": "avahi_string_list_add_pair"
"params":
- "name": "l"
"type": "bool "
- "name": "format"
- "name": "key"
"type": "bool "
- "name": "value"
"type": "bool "
"return_type": "void"
"signature": "AvahiStringList * avahi_string_list_add_printf(AvahiStringList *, const char *, void)"
"signature": "AvahiStringList * avahi_string_list_add_pair(AvahiStringList *, const char *, const char *)"
- "name": "avahi_dns_packet_new_reply"
"params":
- "name": "p"
Expand All @@ -35,17 +37,15 @@
"type": "int"
"return_type": "void"
"signature": "AvahiDnsPacket * avahi_dns_packet_new_reply(AvahiDnsPacket *, unsigned int, int, int)"
- "name": "avahi_string_list_add_pair"
- "name": "avahi_string_list_add_printf"
"params":
- "name": "l"
"type": "bool "
- "name": "key"
"type": "bool "
- "name": "value"
- "name": "format"
"type": "bool "
"return_type": "void"
"signature": "AvahiStringList * avahi_string_list_add_pair(AvahiStringList *, const char *, const char *)"
"signature": "AvahiStringList * avahi_string_list_add_printf(AvahiStringList *, const char *, void)"
"language": "c++"
"project": "avahi"
"target_name": "fuzz-packet"
"target_path": "/src/avahi/fuzz/fuzz-packet.c"
"target_name": "fuzz-ini-file-parser"
"target_path": "/src/avahi/fuzz/fuzz-ini-file-parser.c"
30 changes: 15 additions & 15 deletions benchmark-sets/all/bind9.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
"functions":
- "name": "dns_view_freezezones"
- "name": "dns_zt_freezezones"
"params":
- "name": "zt"
"type": "bool "
- "name": "view"
"type": "bool "
- "name": "value"
- "name": "freeze"
"type": "bool"
"return_type": "int"
"signature": "isc_result_t dns_view_freezezones(dns_view_t *, bool)"
"signature": "isc_result_t dns_zt_freezezones(dns_zt_t *, dns_view_t *, bool)"
- "name": "dns_view_asyncload"
"params":
- "name": "view"
Expand All @@ -31,16 +33,6 @@
"type": "bool "
"return_type": "int"
"signature": "isc_result_t dns_zt_asyncload(dns_zt_t *, bool, dns_zt_callback_t *, void *)"
- "name": "dns_zt_freezezones"
"params":
- "name": "zt"
"type": "bool "
- "name": "view"
"type": "bool "
- "name": "freeze"
"type": "bool"
"return_type": "int"
"signature": "isc_result_t dns_zt_freezezones(dns_zt_t *, dns_view_t *, bool)"
- "name": "dns__rbtdb_addrdataset"
"params":
- "name": "db"
Expand All @@ -59,7 +51,15 @@
"type": "bool "
"return_type": "int"
"signature": "isc_result_t dns__rbtdb_addrdataset(dns_db_t *, dns_dbnode_t *, dns_dbversion_t *, isc_stdtime_t, dns_rdataset_t *, unsigned int, dns_rdataset_t *)"
- "name": "dns_view_freezezones"
"params":
- "name": "view"
"type": "bool "
- "name": "value"
"type": "bool"
"return_type": "int"
"signature": "isc_result_t dns_view_freezezones(dns_view_t *, bool)"
"language": "c"
"project": "bind9"
"target_name": "dns_qpkey_name_fuzzer"
"target_path": "/src/bind9/fuzz/dns_qpkey_name.c"
"target_name": "isc_lex_gettoken_fuzzer"
"target_path": "/src/bind9/fuzz/isc_lex_gettoken.c"
26 changes: 13 additions & 13 deletions benchmark-sets/all/bitcoin-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,6 @@
"type": "bool "
"return_type": "void"
"signature": "Result<std::__1::unique_ptr<interfaces::Wallet, std::__1::default_delete<interfaces::Wallet> > > wallet::(anonymous namespace)::WalletLoaderImpl::createWallet(const string &, const SecureString &, uint64_t, vector<bilingual_str, std::__1::allocator<bilingual_str> > &)"
- "name": "_ZZN6walletL13migratewalletEvENK3$_0clERK10RPCHelpManRK14JSONRPCRequest"
"params":
- "name": "this"
"type": "bool "
- "name": "self"
"type": "bool "
- "name": "request"
"type": "bool "
- "name": ""
"type": "bool "
"return_type": "void"
"signature": "UniValue wallet::operator()(const void *, const RPCHelpMan &, const JSONRPCRequest &)"
- "name": "_ZN6wallet12_GLOBAL__N_116WalletLoaderImpl13migrateWalletERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKNS3_IcS5_16secure_allocatorIcEEE"
"params":
- "name": "this"
Expand All @@ -51,7 +39,19 @@
"type": "bool "
"return_type": "void"
"signature": "Result<wallet::MigrationResult> wallet::MigrateLegacyToDescriptor(const string &, const SecureString &, struct WalletContext &)"
- "name": "_ZZN6walletL13migratewalletEvENK3$_0clERK10RPCHelpManRK14JSONRPCRequest"
"params":
- "name": "this"
"type": "bool "
- "name": "self"
"type": "bool "
- "name": "request"
"type": "bool "
- "name": ""
"type": "bool "
"return_type": "void"
"signature": "UniValue wallet::operator()(const void *, const RPCHelpMan &, const JSONRPCRequest &)"
"language": "c++"
"project": "bitcoin-core"
"target_name": "p2p_transport_bidirectional_v2"
"target_name": "crypto_diff_fuzz_chacha20"
"target_path": "/src/bitcoin-core/src/test/fuzz/fuzz.cpp"
Loading