blob: 41664690ea5bf352d35f98b4e4b8f1d4e987eebd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#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;
}
|