commit
360f69bc46
|
|
@ -654,7 +654,6 @@ if(gRPC_BUILD_TESTS)
|
|||
add_dependencies(buildtests_c h2_uds_nosec_test)
|
||||
endif()
|
||||
add_dependencies(buildtests_c alts_credentials_fuzzer_one_entry)
|
||||
add_dependencies(buildtests_c api_fuzzer_one_entry)
|
||||
add_dependencies(buildtests_c client_fuzzer_one_entry)
|
||||
add_dependencies(buildtests_c hpack_parser_fuzzer_test_one_entry)
|
||||
add_dependencies(buildtests_c http_request_fuzzer_test_one_entry)
|
||||
|
|
@ -18159,34 +18158,6 @@ target_link_libraries(alts_credentials_fuzzer_one_entry
|
|||
)
|
||||
|
||||
|
||||
endif()
|
||||
if(gRPC_BUILD_TESTS)
|
||||
|
||||
add_executable(api_fuzzer_one_entry
|
||||
test/core/end2end/fuzzers/api_fuzzer.cc
|
||||
test/core/util/one_corpus_entry_fuzzer.cc
|
||||
)
|
||||
|
||||
target_include_directories(api_fuzzer_one_entry
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${_gRPC_ADDRESS_SORTING_INCLUDE_DIR}
|
||||
${_gRPC_SSL_INCLUDE_DIR}
|
||||
${_gRPC_UPB_GENERATED_DIR}
|
||||
${_gRPC_UPB_GRPC_GENERATED_DIR}
|
||||
${_gRPC_UPB_INCLUDE_DIR}
|
||||
${_gRPC_ZLIB_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
target_link_libraries(api_fuzzer_one_entry
|
||||
${_gRPC_ALLTARGETS_LIBRARIES}
|
||||
grpc_test_util
|
||||
grpc
|
||||
gpr
|
||||
)
|
||||
|
||||
|
||||
endif()
|
||||
if(gRPC_BUILD_TESTS)
|
||||
|
||||
|
|
|
|||
70
Makefile
70
Makefile
|
|
@ -1010,7 +1010,6 @@ algorithm_test: $(BINDIR)/$(CONFIG)/algorithm_test
|
|||
alloc_test: $(BINDIR)/$(CONFIG)/alloc_test
|
||||
alpn_test: $(BINDIR)/$(CONFIG)/alpn_test
|
||||
alts_credentials_fuzzer: $(BINDIR)/$(CONFIG)/alts_credentials_fuzzer
|
||||
api_fuzzer: $(BINDIR)/$(CONFIG)/api_fuzzer
|
||||
arena_test: $(BINDIR)/$(CONFIG)/arena_test
|
||||
avl_test: $(BINDIR)/$(CONFIG)/avl_test
|
||||
bad_server_response_test: $(BINDIR)/$(CONFIG)/bad_server_response_test
|
||||
|
|
@ -1374,7 +1373,6 @@ address_sorting_test_unsecure: $(BINDIR)/$(CONFIG)/address_sorting_test_unsecure
|
|||
address_sorting_test: $(BINDIR)/$(CONFIG)/address_sorting_test
|
||||
cancel_ares_query_test: $(BINDIR)/$(CONFIG)/cancel_ares_query_test
|
||||
alts_credentials_fuzzer_one_entry: $(BINDIR)/$(CONFIG)/alts_credentials_fuzzer_one_entry
|
||||
api_fuzzer_one_entry: $(BINDIR)/$(CONFIG)/api_fuzzer_one_entry
|
||||
client_fuzzer_one_entry: $(BINDIR)/$(CONFIG)/client_fuzzer_one_entry
|
||||
hpack_parser_fuzzer_test_one_entry: $(BINDIR)/$(CONFIG)/hpack_parser_fuzzer_test_one_entry
|
||||
http_request_fuzzer_test_one_entry: $(BINDIR)/$(CONFIG)/http_request_fuzzer_test_one_entry
|
||||
|
|
@ -1614,7 +1612,6 @@ buildtests_c: privatelibs_c \
|
|||
$(BINDIR)/$(CONFIG)/h2_sockpair_1byte_nosec_test \
|
||||
$(BINDIR)/$(CONFIG)/h2_uds_nosec_test \
|
||||
$(BINDIR)/$(CONFIG)/alts_credentials_fuzzer_one_entry \
|
||||
$(BINDIR)/$(CONFIG)/api_fuzzer_one_entry \
|
||||
$(BINDIR)/$(CONFIG)/client_fuzzer_one_entry \
|
||||
$(BINDIR)/$(CONFIG)/hpack_parser_fuzzer_test_one_entry \
|
||||
$(BINDIR)/$(CONFIG)/http_request_fuzzer_test_one_entry \
|
||||
|
|
@ -9265,38 +9262,6 @@ endif
|
|||
endif
|
||||
|
||||
|
||||
API_FUZZER_SRC = \
|
||||
test/core/end2end/fuzzers/api_fuzzer.cc \
|
||||
|
||||
API_FUZZER_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(API_FUZZER_SRC))))
|
||||
ifeq ($(NO_SECURE),true)
|
||||
|
||||
# You can't build secure targets if you don't have OpenSSL.
|
||||
|
||||
$(BINDIR)/$(CONFIG)/api_fuzzer: openssl_dep_error
|
||||
|
||||
else
|
||||
|
||||
|
||||
|
||||
$(BINDIR)/$(CONFIG)/api_fuzzer: $(API_FUZZER_OBJS) $(LIBDIR)/$(CONFIG)/libgrpc_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr.a
|
||||
$(E) "[LD] Linking $@"
|
||||
$(Q) mkdir -p `dirname $@`
|
||||
$(Q) $(LDXX) $(LDFLAGS) $(API_FUZZER_OBJS) $(LIBDIR)/$(CONFIG)/libgrpc_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr.a $(LDLIBS) $(LDLIBS_SECURE) -lFuzzer -o $(BINDIR)/$(CONFIG)/api_fuzzer
|
||||
|
||||
endif
|
||||
|
||||
$(OBJDIR)/$(CONFIG)/test/core/end2end/fuzzers/api_fuzzer.o: $(LIBDIR)/$(CONFIG)/libgrpc_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr.a
|
||||
|
||||
deps_api_fuzzer: $(API_FUZZER_OBJS:.o=.dep)
|
||||
|
||||
ifneq ($(NO_SECURE),true)
|
||||
ifneq ($(NO_DEPS),true)
|
||||
-include $(API_FUZZER_OBJS:.o=.dep)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
ARENA_TEST_SRC = \
|
||||
test/core/gpr/arena_test.cc \
|
||||
|
||||
|
|
@ -22985,41 +22950,6 @@ endif
|
|||
endif
|
||||
|
||||
|
||||
API_FUZZER_ONE_ENTRY_SRC = \
|
||||
test/core/end2end/fuzzers/api_fuzzer.cc \
|
||||
test/core/util/one_corpus_entry_fuzzer.cc \
|
||||
|
||||
API_FUZZER_ONE_ENTRY_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(API_FUZZER_ONE_ENTRY_SRC))))
|
||||
ifeq ($(NO_SECURE),true)
|
||||
|
||||
# You can't build secure targets if you don't have OpenSSL.
|
||||
|
||||
$(BINDIR)/$(CONFIG)/api_fuzzer_one_entry: openssl_dep_error
|
||||
|
||||
else
|
||||
|
||||
|
||||
|
||||
$(BINDIR)/$(CONFIG)/api_fuzzer_one_entry: $(API_FUZZER_ONE_ENTRY_OBJS) $(LIBDIR)/$(CONFIG)/libgrpc_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr.a
|
||||
$(E) "[LD] Linking $@"
|
||||
$(Q) mkdir -p `dirname $@`
|
||||
$(Q) $(LDXX) $(LDFLAGS) $(API_FUZZER_ONE_ENTRY_OBJS) $(LIBDIR)/$(CONFIG)/libgrpc_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr.a $(LDLIBS) $(LDLIBS_SECURE) -o $(BINDIR)/$(CONFIG)/api_fuzzer_one_entry
|
||||
|
||||
endif
|
||||
|
||||
$(OBJDIR)/$(CONFIG)/test/core/end2end/fuzzers/api_fuzzer.o: $(LIBDIR)/$(CONFIG)/libgrpc_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr.a
|
||||
|
||||
$(OBJDIR)/$(CONFIG)/test/core/util/one_corpus_entry_fuzzer.o: $(LIBDIR)/$(CONFIG)/libgrpc_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr.a
|
||||
|
||||
deps_api_fuzzer_one_entry: $(API_FUZZER_ONE_ENTRY_OBJS:.o=.dep)
|
||||
|
||||
ifneq ($(NO_SECURE),true)
|
||||
ifneq ($(NO_DEPS),true)
|
||||
-include $(API_FUZZER_ONE_ENTRY_OBJS:.o=.dep)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
CLIENT_FUZZER_ONE_ENTRY_SRC = \
|
||||
test/core/end2end/fuzzers/client_fuzzer.cc \
|
||||
test/core/util/one_corpus_entry_fuzzer.cc \
|
||||
|
|
|
|||
13
build.yaml
13
build.yaml
|
|
@ -2342,19 +2342,6 @@ targets:
|
|||
corpus_dirs:
|
||||
- test/core/security/corpus/alts_credentials_corpus
|
||||
maxlen: 2048
|
||||
- name: api_fuzzer
|
||||
build: fuzzer
|
||||
language: c
|
||||
src:
|
||||
- test/core/end2end/fuzzers/api_fuzzer.cc
|
||||
deps:
|
||||
- grpc_test_util
|
||||
- grpc
|
||||
- gpr
|
||||
corpus_dirs:
|
||||
- test/core/end2end/fuzzers/api_fuzzer_corpus
|
||||
dict: test/core/end2end/fuzzers/api_fuzzer.dictionary
|
||||
maxlen: 2048
|
||||
- name: arena_test
|
||||
cpu_cost: 10
|
||||
build: test
|
||||
|
|
|
|||
|
|
@ -20,21 +20,6 @@ licenses(["notice"]) # Apache v2
|
|||
|
||||
load("//test/core/util:grpc_fuzzer.bzl", "grpc_fuzzer")
|
||||
|
||||
grpc_fuzzer(
|
||||
name = "api_fuzzer",
|
||||
size = "enormous",
|
||||
srcs = ["api_fuzzer.cc"],
|
||||
corpus = "api_fuzzer_corpus",
|
||||
language = "C++",
|
||||
tags = ["no_windows"],
|
||||
deps = [
|
||||
"//:gpr",
|
||||
"//:grpc",
|
||||
"//test/core/end2end:ssl_test_data",
|
||||
"//test/core/util:grpc_test_util",
|
||||
],
|
||||
)
|
||||
|
||||
grpc_fuzzer(
|
||||
name = "client_fuzzer",
|
||||
srcs = ["client_fuzzer.cc"],
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,27 +0,0 @@
|
|||
# tracers
|
||||
"api\x00"
|
||||
"channel\x00"
|
||||
"channel_stack_builder\x00"
|
||||
"connectivity_state\x00"
|
||||
"flowctl\x00"
|
||||
"http\x00"
|
||||
"http1\x00"
|
||||
"round_robin\x00"
|
||||
"secure_endpoint\x00"
|
||||
"tcp\x00"
|
||||
"transport_security\x00"
|
||||
|
||||
# channel args
|
||||
"\x00grpc.census\x00"
|
||||
"\x00grpc.max_concurrent_streams\x00"
|
||||
"\x00grpc.max_message_length\x00"
|
||||
"\x00grpc.http2.initial_sequence_number\x00"
|
||||
"\x00grpc.http2.lookahead_bytes\x00"
|
||||
"\x00grpc.http2.hpack_table_size.decoder\x00"
|
||||
"\x00grpc.http2.hpack_table_size.encoder\x00"
|
||||
"\x01grpc.default_authority\x00"
|
||||
"\x01grpc.primary_user_agent\x00"
|
||||
"\x01grpc.secondary_user_agent\x00"
|
||||
"\x00grpc.max_reconnect_backoff_ms\x00"
|
||||
"\x01grpc.ssl_target_name_override\x00"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1 +0,0 @@
|
|||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1 +0,0 @@
|
|||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1 +0,0 @@
|
|||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1 +0,0 @@
|
|||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1 +0,0 @@
|
|||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1 +0,0 @@
|
|||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1 +0,0 @@
|
|||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1 +0,0 @@
|
|||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1 +0,0 @@
|
|||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1 +0,0 @@
|
|||
|
||||
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue