Staging
v0.5.1
https://github.com/git/git
Revision b3d7a52fac39193503a0b6728771d1bf6a161464 authored by Junio C Hamano on 01 June 2020, 06:03:57 UTC, committed by Junio C Hamano on 01 June 2020, 06:03:57 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 56219ba
Raw File
Tip revision: b3d7a52fac39193503a0b6728771d1bf6a161464 authored by Junio C Hamano on 01 June 2020, 06:03:57 UTC
Git 2.27
Tip revision: b3d7a52
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