Staging
v0.5.1
https://github.com/git/git
Revision de49261b050d9cd8ec73842356077bc5b606640f authored by Junio C Hamano on 25 March 2020, 20:07:47 UTC, committed by Junio C Hamano on 25 March 2020, 20:07:47 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2 parent s 274b9cc + 67b0a24
Raw File
Tip revision: de49261b050d9cd8ec73842356077bc5b606640f authored by Junio C Hamano on 25 March 2020, 20:07:47 UTC
Git 2.26.1
Tip revision: de49261
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