Go to the documentation of this file.
30 #include "src/libfuzzer/libfuzzer_macro.h"
31 #include "test/core/transport/chttp2/hpack_parser_fuzzer.pb.h"
44 ->CreateMemoryAllocator(
"test-allocator");
47 for (
int i = 0;
i <
msg.frames_size();
i++) {
55 if (
frame.end_of_headers()) {
58 if (
frame.end_of_stream()) {
63 if (
frame.priority()) {
66 int max_length = 1024;
67 if (
frame.max_metadata_length() != 0) {
68 max_length =
frame.max_metadata_length();
75 int stop_buffering_ctr =
83 if (0 == stop_buffering_ctr)
parser->StopBufferingFrame();
GPRAPI void grpc_slice_unref(grpc_slice s)
ScopedArenaPtr MakeScopedArena(size_t initial_size, MemoryAllocator *memory_allocator)
static void dont_log(gpr_log_func_args *)
grpc_core::ScopedArenaPtr arena
void grpc_test_only_set_slice_hash_seed(uint32_t seed)
MemoryQuotaRefPtr memory_quota()
static ResourceQuotaRefPtr Default()
GPRAPI grpc_slice grpc_slice_from_copied_buffer(const char *source, size_t len)
grpc_core::ExecCtx exec_ctx
static void parse(const char *s)
static void frame(frame_handler *handler, unsigned char *payload, size_t payload_length, size_t write_length)
#define GRPC_ERROR_UNREF(err)
DEFINE_PROTO_FUZZER(const hpack_parser_fuzzer::Msg &msg)
GPRAPI void gpr_set_log_function(gpr_log_func func)
GRPCAPI void grpc_init(void)
GRPCAPI void grpc_shutdown(void)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:13