Staging
v0.5.1
Revision 90d242d36e248acfae0033274b524bfa55a947fd authored by Junio C Hamano on 10 January 2022, 19:28:51 UTC, committed by Junio C Hamano on 10 January 2022, 19:52:57 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 6e22345
Raw File
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