Staging
v0.5.1
https://github.com/git/git
Revision 74583d89127e21255c12dd3c8a3bf60b497d7d03 authored by Junio C Hamano on 03 June 2019, 18:25:12 UTC, committed by Junio C Hamano on 03 June 2019, 18:25:12 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 4a787f7
Raw File
Tip revision: 74583d89127e21255c12dd3c8a3bf60b497d7d03 authored by Junio C Hamano on 03 June 2019, 18:25:12 UTC
Git 2.22-rc3
Tip revision: 74583d8
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