Staging
v0.5.1
https://github.com/git/git
Revision 225bc32a989d7a22fa6addafd4ce7dcd04675dbf authored by Junio C Hamano on 16 August 2021, 19:15:44 UTC, committed by Junio C Hamano on 16 August 2021, 19:15:44 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent b06a504
Raw File
Tip revision: 225bc32a989d7a22fa6addafd4ce7dcd04675dbf authored by Junio C Hamano on 16 August 2021, 19:15:44 UTC
Git 2.33
Tip revision: 225bc32
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