blob: 150c0f5fa2d7ec2b9dd6a14f6000e5b58b753aa9 [file] [log] [blame]
Elijah Newren8bff5ca2023-02-24 00:09:20 +00001#include "git-compat-util.h"
Josh Steadmon5e472152018-10-12 17:58:40 -07002#include "packfile.h"
3
4int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);
5
6int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
7{
8 enum object_type type;
9 unsigned long len;
10
11 unpack_object_header_buffer((const unsigned char *)data,
12 (unsigned long)size, &type, &len);
13
14 return 0;
15}