|
|
|
@ -35,14 +35,17 @@ |
|
|
|
|
#include <string.h> |
|
|
|
|
|
|
|
|
|
#include <grpc/grpc.h> |
|
|
|
|
#include <grpc/support/log.h> |
|
|
|
|
#include <grpc/support/alloc.h> |
|
|
|
|
|
|
|
|
|
#include "src/core/ext/transport/chttp2/transport/hpack_parser.h" |
|
|
|
|
|
|
|
|
|
static void onhdr(void *ud, grpc_mdelem *md) { GRPC_MDELEM_UNREF(md); } |
|
|
|
|
static void dont_log(gpr_log_func_args *args) {} |
|
|
|
|
|
|
|
|
|
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { |
|
|
|
|
grpc_test_only_set_metadata_hash_seed(0); |
|
|
|
|
gpr_set_log_function(dont_log); |
|
|
|
|
grpc_init(); |
|
|
|
|
grpc_chttp2_hpack_parser parser; |
|
|
|
|
grpc_chttp2_hpack_parser_init(&parser); |
|
|
|
|