https://github.com/git/git
Raw File
Tip revision: f01623b2c9d14207e497b21ebc6b3ec4afaf4b46 authored by Junio C Hamano on 03 March 2021, 06:41:13 UTC
Git 2.31-rc1
Tip revision: f01623b
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