https://github.com/git/git
Raw File
Tip revision: 7556e5d737b917d31ac3729b0f5e2391da7e132a authored by Johannes Schindelin on 06 February 2023, 08:43:30 UTC
Git 2.38.4
Tip revision: 7556e5d
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