https://github.com/git/git
Raw File
Tip revision: af778cd9be6307e34f9f900fd42eb826c65b32da authored by Taylor Blau on 30 September 2022, 21:00:58 UTC
Git 2.32.4
Tip revision: af778cd
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