https://github.com/git/git
Raw File
Tip revision: 53a06cf39b756eddfe4a2a34da93e3d04eb7b728 authored by Johannes Schindelin on 04 December 2019, 22:10:12 UTC
Git 2.24.1
Tip revision: 53a06cf
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