https://github.com/git/git
Raw File
Tip revision: 88b7be68a4bf9f39b84ed438d8d776c0d752b316 authored by Johannes Schindelin on 27 May 2022, 21:38:36 UTC
Git 2.30.5
Tip revision: 88b7be6
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