summaryrefslogtreecommitdiff
path: root/tests/file_descriptor_parsenew_fuzzer.cc
blob: 057e62d8bf817bfc0cc411f18a1effe9a4860506 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <cstdint>

#include "google/protobuf/descriptor.upb.h"
#include "upb/upb.h"

extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
  upb::Arena arena;
  google_protobuf_FileDescriptorProto_parse(reinterpret_cast<const char*>(data),
                                            size, arena.ptr());
  return 0;
}

#ifndef HAVE_FUZZER
int main() {}
#endif
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback