From 47f4983fcced07b192c0e2a74845a3a83e9a41e4 Mon Sep 17 00:00:00 2001 From: Google AutoFuzz Team Date: Tue, 25 Jun 2019 11:23:12 -0400 Subject: Create README --- tests/corpus/README | 1 + 1 file changed, 1 insertion(+) create mode 100644 tests/corpus/README (limited to 'tests') diff --git a/tests/corpus/README b/tests/corpus/README new file mode 100644 index 0000000..9bd8f1e --- /dev/null +++ b/tests/corpus/README @@ -0,0 +1 @@ +Corpus folder for fuzzing -- cgit v1.2.3 From 8f196677867a0d3d2673557fc57ed55d68dbe500 Mon Sep 17 00:00:00 2001 From: Google-Autofuzz Date: Tue, 25 Jun 2019 20:14:14 -0400 Subject: modified fuzz config --- BUILD | 18 +++++++++--------- tests/corpus/temp.cc | 1 + 2 files changed, 10 insertions(+), 9 deletions(-) create mode 100644 tests/corpus/temp.cc (limited to 'tests') diff --git a/BUILD b/BUILD index 9913e91..9e36eb6 100644 --- a/BUILD +++ b/BUILD @@ -9,7 +9,6 @@ load( "make_shell_script", "upb_amalgamation", ) - load( "//bazel:upb_proto_library.bzl", "upb_proto_library", @@ -81,23 +80,23 @@ cc_library( # give up any backward compatibility guarantees. cc_library( name = "generated_code_support__only_for_generated_code_do_not_use__i_give_permission_to_break_me", - textual_hdrs = [ - "upb/port_def.inc", - "upb/port_undef.inc", - ], hdrs = [ "upb/generated_util.h", "upb/msg.h", ], - deps = [":upb"], copts = COPTS, + textual_hdrs = [ + "upb/port_def.inc", + "upb/port_undef.inc", + ], visibility = ["//visibility:public"], + deps = [":upb"], ) upb_proto_library( name = "descriptor_upbproto", - deps = ["@com_google_protobuf//:descriptor_proto"], visibility = ["//visibility:public"], + deps = ["@com_google_protobuf//:descriptor_proto"], ) cc_library( @@ -363,12 +362,13 @@ cc_test( # OSS-Fuzz test cc_binary( - testonly = 1, name = "file_descriptor_parsenew_fuzzer", + testonly = 1, srcs = ["tests/file_descriptor_parsenew_fuzzer.cc"], copts = CPPOPTS + select({ "//conditions:default": [], - ":fuzz": ["-fsanitizer=fuzzer,address"], + ":fuzz": [], + # ":fuzz": ["-fsanitizer=fuzzer,address"], }), defines = select({ "//conditions:default": [], diff --git a/tests/corpus/temp.cc b/tests/corpus/temp.cc new file mode 100644 index 0000000..2bf1160 --- /dev/null +++ b/tests/corpus/temp.cc @@ -0,0 +1 @@ +// Hello World -- cgit v1.2.3