https://github.com/git/git
Raw File
Tip revision: 2d755dfac9aadab25c3e025b849252b8c0a61465 authored by Junio C Hamano on 06 August 2021, 19:53:06 UTC
Git 2.33-rc1
Tip revision: 2d755df
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