|
|
@ -41,7 +41,10 @@ |
|
|
|
bool squelch = true; |
|
|
|
bool squelch = true; |
|
|
|
bool leak_check = true; |
|
|
|
bool leak_check = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void dont_log(gpr_log_func_args *args) {} |
|
|
|
|
|
|
|
|
|
|
|
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { |
|
|
|
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { |
|
|
|
|
|
|
|
if (squelch) gpr_set_log_function(dont_log); |
|
|
|
gpr_slice slice = gpr_slice_from_copied_buffer((const char *)data, size); |
|
|
|
gpr_slice slice = gpr_slice_from_copied_buffer((const char *)data, size); |
|
|
|
grpc_grpclb_serverlist *serverlist; |
|
|
|
grpc_grpclb_serverlist *serverlist; |
|
|
|
if ((serverlist = grpc_grpclb_response_parse_serverlist(slice))) { |
|
|
|
if ((serverlist = grpc_grpclb_response_parse_serverlist(slice))) { |
|
|
|