https://github.com/git/git
Raw File
Tip revision: 1b3d6e17fe83eb6f79ffbac2f2c61bbf1eaef5f8 authored by Junio C Hamano on 21 September 2022, 22:26:39 UTC
Git 2.38-rc1
Tip revision: 1b3d6e1
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