https://github.com/git/git
Raw File
Tip revision: 47ae905ffb98cc4d4fd90083da6bc8dab55d9ecc authored by Junio C Hamano on 27 July 2020, 01:01:43 UTC
Git 2.28
Tip revision: 47ae905
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