Protocol Buffers - Google's data interchange format (grpc依赖) https://developers.google.com/protocol-buffers/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
435 B

#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include "google/protobuf/descriptor.upb.h"
#include "upb/def.h"
#include "upb/msg.h"
#include "upb/upb.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
upb_strview strview =
upb_strview_make(reinterpret_cast<const char*>(data), size);
upb::Arena arena;
google_protobuf_FileDescriptorProto_parsenew(strview, arena.ptr());
return 0;
}