Staging
v0.5.1
Revision 5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9 authored by Junio C Hamano on 16 August 2019, 17:28:23 UTC, committed by Junio C Hamano on 16 August 2019, 17:28:23 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 8e0fa0e
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