Staging
v0.5.1
https://github.com/git/git
Revision d62dad7a7dca3f6a65162bf0e52cdf6927958e78 authored by Junio C Hamano on 07 February 2019, 05:30:09 UTC, committed by Junio C Hamano on 07 February 2019, 06:05:31 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 9293bf6
Raw File
Tip revision: d62dad7a7dca3f6a65162bf0e52cdf6927958e78 authored by Junio C Hamano on 07 February 2019, 05:30:09 UTC
Git 2.21-rc0
Tip revision: d62dad7
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