1 #include <cstdint> 2 3 #include "google/protobuf/descriptor.upb.h" 4 #include "upb/upb.hpp" 5 LLVMFuzzerTestOneInput(const uint8_t * data,size_t size)6extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { 7 upb::Arena arena; 8 google_protobuf_FileDescriptorProto_parse(reinterpret_cast<const char*>(data), 9 size, arena.ptr()); 10 return 0; 11 } 12 13 #ifndef HAVE_FUZZER main()14int main() {} 15 #endif 16