Sync with 'maint'
[alt-git.git] / oss-fuzz / fuzz-pack-headers.c
blob150c0f5fa2d7ec2b9dd6a14f6000e5b58b753aa9
1 #include "git-compat-util.h"
2 #include "packfile.h"
4 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);
6 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
8 enum object_type type;
9 unsigned long len;
11 unpack_object_header_buffer((const unsigned char *)data,
12 (unsigned long)size, &type, &len);
14 return 0;