https://github.com/git/git
Revision 7f4e64169352e03476b0ea64e7e2973669e491a2 authored by Junio C Hamano on 21 November 2018, 14:24:52 UTC, committed by Junio C Hamano on 21 November 2018, 14:24:52 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 7cb1ea1
Raw File
Tip revision: 7f4e64169352e03476b0ea64e7e2973669e491a2 authored by Junio C Hamano on 21 November 2018, 14:24:52 UTC
Git 2.20-rc1
Tip revision: 7f4e641
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