https://github.com/git/git
Raw File
Tip revision: f2eed22852b0a21556f0c9f56732913eba553e62 authored by Johannes Schindelin on 23 June 2022, 10:35:49 UTC
Git 2.34.4
Tip revision: f2eed22
fuzz-pack-headers.c
#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;
}
back to top