Staging
v0.5.1
https://github.com/git/git
Revision 5d213e46bb7b880238ff5ea3914e940a50ae9369 authored by Junio C Hamano on 11 August 2021, 18:54:03 UTC, committed by Junio C Hamano on 11 August 2021, 19:36:18 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 4c90d89
Raw File
Tip revision: 5d213e46bb7b880238ff5ea3914e940a50ae9369 authored by Junio C Hamano on 11 August 2021, 18:54:03 UTC
Git 2.33-rc2
Tip revision: 5d213e4
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