summaryrefslogtreecommitdiffstats
path: root/oss-fuzz/fuzz-pack-headers.c
blob: 99da1d0fd385eb3bc0c7f0b4a0b8cd167e0cb5e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "packfile.h"

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);

int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
	enum object_type type;
	unsigned long len;

	unpack_object_header_buffer((const unsigned char *)data,
				    (unsigned long)size, &type, &len);

	return 0;
}